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 /station_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 'station_gui.c')
-rw-r--r-- | station_gui.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/station_gui.c b/station_gui.c index 28d12983b..5d76f020c 100644 --- a/station_gui.c +++ b/station_gui.c @@ -77,16 +77,15 @@ static int CDECL StationNameSorter(const void *a, const void *b) const Station* st1 = *(const Station**)a; const Station* st2 = *(const Station**)b; char buf1[64]; - int32 argv[1]; int r; - argv[0] = st1->index; - GetStringWithArgs(buf1, STR_STATION, argv); + SetDParam(0, st1->index); + GetString(buf1, STR_STATION); if (st2 != _last_station) { _last_station = st2; - argv[0] = st2->index; - GetStringWithArgs(_bufcache, STR_STATION, argv); + SetDParam(0, st2->index); + GetString(_bufcache, STR_STATION); } r = strcmp(buf1, _bufcache); // sort by name |