summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-07-06 20:36:32 +0000
committerbelugas <belugas@openttd.org>2007-07-06 20:36:32 +0000
commit26a7f3df84b32853a47208c42c63c0069ae4ec08 (patch)
treef396df99a7daabf7d09d5e5c72ab20ba9378f316
parentc70a275a50a17d33da698bbfedeeffdb346a6a64 (diff)
downloadopenttd-26a7f3df84b32853a47208c42c63c0069ae4ec08.tar.xz
(svn r10456) -Codechange: Enable loading newgrf strings for Industries
-rw-r--r--src/newgrf.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index c27807625..c4a4895a4 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -2723,6 +2723,11 @@ static void FeatureNewName(byte *buf, int len)
}
break;
+ case GSF_INDUSTRIES: {
+ AddGRFString(_cur_grffile->grfid, id, lang, new_scheme, name, STR_UNDEFINED);
+ break;
+ }
+
case GSF_TOWNHOUSE:
default:
switch (GB(id, 8, 8)) {
@@ -2773,10 +2778,6 @@ static void FeatureNewName(byte *buf, int len)
}
break;
- case GSF_INDUSTRIES :
- case 0x48 : // for generic strings
- AddGRFString(_cur_spriteid, id, lang, name);
- break;
default :
grfmsg(7, "FeatureNewName: Unsupported feature (0x%02X)", feature);
break;