summaryrefslogtreecommitdiff
path: root/misc_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
commit76325c2bb200c747226dd46f72d3d0557d8046dc (patch)
treeb202d1ba16f6a4229426ef2177c75b1c56546523 /misc_gui.c
parentdcc381bf5caf7be6e27f7bc12f8febaf200b802b (diff)
downloadopenttd-76325c2bb200c747226dd46f72d3d0557d8046dc.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 'misc_gui.c')
-rw-r--r--misc_gui.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/misc_gui.c b/misc_gui.c
index 241e9ae1a..104ebf6f5 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;