(svn r1848) Remove the obscure feature of initialising the edit box with the contents of str_buffr - it was unused anyway.
authortron
Tue, 08 Feb 2005 16:37:28 +0000
changeset 1344 9797051fb173
parent 1343 19445bf5b17e
child 1345 d68d969eb662
(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
network_gui.c
--- a/misc_gui.c	Tue Feb 08 15:42:28 2005 +0000
+++ b/misc_gui.c	Tue Feb 08 16:37:28 2005 +0000
@@ -994,11 +994,7 @@
 	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;
--- a/network_gui.c	Tue Feb 08 15:42:28 2005 +0000
+++ b/network_gui.c	Tue Feb 08 16:37:28 2005 +0000
@@ -1455,11 +1455,7 @@
 
 	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;