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 | 2f6a4bc1a92aeb4904e5e84e23fa28d0307a303c (patch) | |
tree | 7b7c2c5ef41754f3d2854fc5337bb50a88959b3b /town_gui.c | |
parent | 5dec21ff0f3b0b7dce51254d1254d548a9f91093 (diff) | |
download | openttd-2f6a4bc1a92aeb4904e5e84e23fa28d0307a303c.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); |