From d1fb165ad2674fd1c6ed79208391efb30aac13aa Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 8 Feb 2005 16:37:28 +0000 Subject: [PATCH] (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. --- misc_gui.c | 6 +----- network_gui.c | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/misc_gui.c b/misc_gui.c index 241e9ae1a8..104ebf6f53 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -994,11 +994,7 @@ void ShowQueryString(StringID str, StringID caption, int maxlen, int maxwidth, b DeleteWindowById(WC_QUERY_STRING, 0); DeleteWindowById(WC_SAVELOAD, 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); if (maxlen & 0x1000) { _do_edit_on_text_even_when_no_change_to_edit_box = true; diff --git a/network_gui.c b/network_gui.c index 3cf00a1eaf..1dc06c0f41 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;