summaryrefslogtreecommitdiff
path: root/strings.c
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-10-24 19:19:25 +0000
committerbelugas <belugas@openttd.org>2006-10-24 19:19:25 +0000
commitf48c419467197418d1f2b426cfcf1ee3e1bf554b (patch)
tree6c16ace129716db3f73132dc8d0bbbee789f4810 /strings.c
parentacbdd24f2f8a752933ba6fd331e6ec4c160027e9 (diff)
downloadopenttd-f48c419467197418d1f2b426cfcf1ee3e1bf554b.tar.xz
(svn r6930) -Codechange: Move industry name into IndustrySpec
-Codechange: member color_map is more related to random color, rename it as such
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/strings.c b/strings.c
index 5f60b6b4b..ef6bd90c8 100644
--- a/strings.c
+++ b/strings.c
@@ -20,6 +20,7 @@
#include "table/landscape_const.h"
#include "music.h"
#include "date.h"
+#include "industry.h"
#ifdef WIN32
/* for opendir/readdir/closedir */
@@ -697,7 +698,7 @@ static char* FormatString(char* buff, const char* str, const int32* argv, uint c
// First print the town name and the industry type name
// The string STR_INDUSTRY_PATTERN controls the formatting
args[0] = i->town->index;
- args[1] = i->type + STR_4802_COAL_MINE;
+ args[1] = GetIndustrySpec(i->type)->name;
buff = FormatString(buff, GetStringPtr(STR_INDUSTRY_FORMAT), args, modifier >> 24, last);
modifier = 0;
break;