summaryrefslogtreecommitdiff
path: root/network_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-08 16:37:28 +0000
committertron <tron@openttd.org>2005-02-08 16:37:28 +0000
commitd1fb165ad2674fd1c6ed79208391efb30aac13aa (patch)
treeb202d1ba16f6a4229426ef2177c75b1c56546523 /network_gui.c
parent1afad51ee2766b309b49454ce04308ef3abcd50b (diff)
downloadopenttd-d1fb165ad2674fd1c6ed79208391efb30aac13aa.tar.xz
(svn r1848) Remove the obscure feature of initialising the edit box with the contents of str_buffr - it was unused anyway.
Remove it from the chat box too, which inherited it via copy&paste.
Diffstat (limited to 'network_gui.c')
-rw-r--r--network_gui.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/network_gui.c b/network_gui.c
index 3cf00a1ea..1dc06c0f4 100644
--- a/network_gui.c
+++ b/network_gui.c
@@ -1455,11 +1455,7 @@ void ShowChatWindow(StringID str, StringID caption, int maxlen, int maxwidth, by
DeleteWindowById(WC_SEND_NETWORK_MSG, 0);
- if (str == 0xFFFF) {
- memcpy(_orig_edit_str_buf, str_buffr, MAX_QUERYSTR_LEN);
- } else {
- GetString(_orig_edit_str_buf, str);
- }
+ GetString(_orig_edit_str_buf, str);
_orig_edit_str_buf[maxlen] = 0;