diff options
author | ludde <ludde@openttd.org> | 2005-07-15 18:30:13 +0000 |
---|---|---|
committer | ludde <ludde@openttd.org> | 2005-07-15 18:30:13 +0000 |
commit | dc3ca73bd5f514c8eb8c05a0e05d149586dd5c6b (patch) | |
tree | 77cbbb71361c4ceb1306dc06c65b6364221d6c2f /misc_gui.c | |
parent | 843670cfdfed91a4f3b64c7e37781ab5a5cb5f6f (diff) | |
download | openttd-dc3ca73bd5f514c8eb8c05a0e05d149586dd5c6b.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.c | 5 |
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); |