(svn r6169) -Codechange: Use GetString() instead of GetStringWithArgs() which should be

integral to strings.c
This commit is contained in:
Darkvater
2006-08-27 10:04:33 +00:00
parent 5dec21ff0f
commit 2f6a4bc1a9
6 changed files with 14 additions and 20 deletions

View File

@@ -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