summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
authorludde <ludde@openttd.org>2005-07-15 18:30:13 +0000
committerludde <ludde@openttd.org>2005-07-15 18:30:13 +0000
commit3486e7e9d5d24e2e0595b7a8d517581b926b85cd (patch)
tree77cbbb71361c4ceb1306dc06c65b6364221d6c2f /misc_gui.c
parent157addf5e9d85e513355edb97d513443ba9c131f (diff)
downloadopenttd-3486e7e9d5d24e2e0595b7a8d517581b926b85cd.tar.xz
(svn r2580) Change: Added {INDUSTRY} command for printing industry names instead of the old {TOWN} {STRING} way.
- The formatting of the industry name can be controlled with the string STR_INDUSTRY_FORMAT. Change: Changed several occurences of {STRING1} into {TOWN} to get rid of townnametype being used directly.
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/misc_gui.c b/misc_gui.c
index e6ef308c3..0aa0140ab 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -40,7 +40,6 @@ static void LandInfoWndProc(Window *w, WindowEvent *e)
StringID str;
if (e->event == WE_PAINT) {
- int idx = 0;
int i;
DrawWindowWidgets(w);
@@ -70,8 +69,8 @@ static void LandInfoWndProc(Window *w, WindowEvent *e)
SetDParam(0, STR_01A9_NONE);
if (lid->town != NULL) {
- SetDParam(0, lid->town->townnametype);
- SetDParam(1, lid->town->townnameparts);
+ SetDParam(0, STR_TOWN);
+ SetDParam(1, lid->town->index);
}
DrawStringCentered(140,60, STR_01A8_LOCAL_AUTHORITY, 0);