From 76325c2bb200c747226dd46f72d3d0557d8046dc Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 8 Feb 2005 16:37:28 +0000 Subject: (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. --- network_gui.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'network_gui.c') 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; -- cgit v1.2.3-54-g00ecf