mirror of https://github.com/OpenTTD/OpenTTD
(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.release/0.4.5
parent
1afad51ee2
commit
d1fb165ad2
|
@ -994,11 +994,7 @@ void ShowQueryString(StringID str, StringID caption, int maxlen, int maxwidth, b
|
||||||
DeleteWindowById(WC_QUERY_STRING, 0);
|
DeleteWindowById(WC_QUERY_STRING, 0);
|
||||||
DeleteWindowById(WC_SAVELOAD, 0);
|
DeleteWindowById(WC_SAVELOAD, 0);
|
||||||
|
|
||||||
if (str == 0xFFFF) {
|
GetString(_orig_edit_str_buf, str);
|
||||||
memcpy(_orig_edit_str_buf, str_buffr, MAX_QUERYSTR_LEN);
|
|
||||||
} else {
|
|
||||||
GetString(_orig_edit_str_buf, str);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (maxlen & 0x1000) {
|
if (maxlen & 0x1000) {
|
||||||
_do_edit_on_text_even_when_no_change_to_edit_box = true;
|
_do_edit_on_text_even_when_no_change_to_edit_box = true;
|
||||||
|
|
|
@ -1455,11 +1455,7 @@ void ShowChatWindow(StringID str, StringID caption, int maxlen, int maxwidth, by
|
||||||
|
|
||||||
DeleteWindowById(WC_SEND_NETWORK_MSG, 0);
|
DeleteWindowById(WC_SEND_NETWORK_MSG, 0);
|
||||||
|
|
||||||
if (str == 0xFFFF) {
|
GetString(_orig_edit_str_buf, str);
|
||||||
memcpy(_orig_edit_str_buf, str_buffr, MAX_QUERYSTR_LEN);
|
|
||||||
} else {
|
|
||||||
GetString(_orig_edit_str_buf, str);
|
|
||||||
}
|
|
||||||
|
|
||||||
_orig_edit_str_buf[maxlen] = 0;
|
_orig_edit_str_buf[maxlen] = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue