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 /network_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 'network_gui.c')
-rw-r--r-- | network_gui.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/network_gui.c b/network_gui.c index 044e4d666..4c530cbb8 100644 --- a/network_gui.c +++ b/network_gui.c @@ -1512,11 +1512,9 @@ static const char *ChatTabCompletionNextItem(uint *item) const Town *t; FOR_ALL_TOWNS_FROM(t, *item - MAX_CLIENT_INFO) { - int32 temp[1]; - /* Get the town-name via the string-system */ - temp[0] = t->townnameparts; - GetStringWithArgs(chat_tab_temp_buffer, t->townnametype, temp); + SetDParam(0, t->townnameparts); + GetString(chat_tab_temp_buffer, t->townnametype); return &chat_tab_temp_buffer[0]; } } |