summaryrefslogtreecommitdiff
path: root/src/town_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-20 11:21:57 +0000
committerrubidium <rubidium@openttd.org>2009-07-20 11:21:57 +0000
commite3053660c673b0a81691175995ee68d00fac869c (patch)
tree2bce56e94620079087ae16f12c62217d4945e596 /src/town_gui.cpp
parentdc943b35e092f80bb5e3b972b4d5ed73bbccb546 (diff)
downloadopenttd-e3053660c673b0a81691175995ee68d00fac869c.tar.xz
(svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r--src/town_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index d017c04a7..3f6f228af 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -392,7 +392,7 @@ public:
case TVW_CHANGENAME: // rename
SetDParam(0, this->window_number);
- ShowQueryString(STR_TOWN, STR_TOWN_VIEW_RENAME_TOWN_BUTTON, MAX_LENGTH_TOWN_NAME_BYTES, MAX_LENGTH_TOWN_NAME_PIXELS, this, CS_ALPHANUMERAL, QSF_ENABLE_DEFAULT);
+ ShowQueryString(STR_TOWN_NAME, STR_TOWN_VIEW_RENAME_TOWN_BUTTON, MAX_LENGTH_TOWN_NAME_BYTES, MAX_LENGTH_TOWN_NAME_PIXELS, this, CS_ALPHANUMERAL, QSF_ENABLE_DEFAULT);
break;
case TVW_EXPAND: // expand town - only available on Scenario editor
@@ -565,7 +565,7 @@ private:
char buf[64];
SetDParam(0, ta->index);
- GetString(buf, STR_TOWN, lastof(buf));
+ GetString(buf, STR_TOWN_NAME, lastof(buf));
/* If 'b' is the same town as in the last round, use the cached value
* We do this to speed stuff up ('b' is called with the same value a lot of
@@ -573,7 +573,7 @@ private:
if (tb != last_town) {
last_town = tb;
SetDParam(0, tb->index);
- GetString(buf_cache, STR_TOWN, lastof(buf_cache));
+ GetString(buf_cache, STR_TOWN_NAME, lastof(buf_cache));
}
return strcmp(buf, buf_cache);