summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-07-25 22:37:34 +0000
committersmatz <smatz@openttd.org>2008-07-25 22:37:34 +0000
commit05c2a8eba4d3a7e703235cad3eeb7f585faae59d (patch)
tree1a6093e36d4bb9122b5adce8c2e74ff3fc512aa2 /src/industry_cmd.cpp
parentce7585101d58c617da5df7ebcbd76ab3ae64744f (diff)
downloadopenttd-05c2a8eba4d3a7e703235cad3eeb7f585faae59d.tar.xz
(svn r13830) -Feature: show additional NewGRF info in the Tile Info window for stations, houses and industries
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 67b2790e6..88d85486e 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -389,13 +389,18 @@ static void GetAcceptedCargo_Industry(TileIndex tile, AcceptedCargo ac)
static void GetTileDesc_Industry(TileIndex tile, TileDesc *td)
{
const Industry *i = GetIndustryByTile(tile);
+ const IndustrySpec *is = GetIndustrySpec(i->type);
td->owner[0] = i->owner;
- td->str = GetIndustrySpec(i->type)->name;
+ td->str = is->name;
if (!IsIndustryCompleted(tile)) {
SetDParamX(td->dparam, 0, td->str);
td->str = STR_2058_UNDER_CONSTRUCTION;
}
+
+ if (is->grf_prop.grffile != NULL) {
+ td->grf = GetGRFConfig(is->grf_prop.grffile->grfid)->name;
+ }
}
static CommandCost ClearTile_Industry(TileIndex tile, byte flags)