diff options
author | Darkvater <Darkvater@openttd.org> | 2006-08-27 10:04:33 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-08-27 10:04:33 +0000 |
commit | 9f73fce941ba80db674eeebb834cd2e137402686 (patch) | |
tree | 7b7c2c5ef41754f3d2854fc5337bb50a88959b3b /town_gui.c | |
parent | de742d597eb4d8c2bf93f6323a661d9c9c9016fc (diff) | |
download | openttd-9f73fce941ba80db674eeebb834cd2e137402686.tar.xz |
(svn r6169) -Codechange: Use GetString() instead of GetStringWithArgs() which should be
integral to strings.c
Diffstat (limited to 'town_gui.c')
-rw-r--r-- | town_gui.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/town_gui.c b/town_gui.c index cc0b0d240..1cc5269f8 100644 --- a/town_gui.c +++ b/town_gui.c @@ -376,18 +376,17 @@ static int CDECL TownNameSorter(const void *a, const void *b) const Town* tb = *(const Town**)b; char buf1[64]; int r; - int32 argv[1]; - argv[0] = ta->index; - GetStringWithArgs(buf1, STR_TOWN, argv); + SetDParam(0, ta->index); + GetString(buf1, STR_TOWN); /* 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 * times after eachother) */ if (tb != _last_town) { _last_town = tb; - argv[0] = tb->index; - GetStringWithArgs(_bufcache, STR_TOWN, argv); + SetDParam(0, tb->index); + GetString(_bufcache, STR_TOWN); } r = strcmp(buf1, _bufcache); |