mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-05 22:04:57 +00:00
(svn r13330) -Fix: 'Player name' dialog was broken in two ways
This commit is contained in:
parent
bed7719967
commit
a0c62f1752
@ -517,10 +517,10 @@ public:
|
||||
return state;
|
||||
}
|
||||
|
||||
if (this->HandleEditBoxKey(NGWW_PLAYER, keycode, key, state) == 1) return state; // enter pressed
|
||||
if (this->HandleEditBoxKey(NGWW_PLAYER, key, keycode, state) == 1) return state; // enter pressed
|
||||
|
||||
/* The name is only allowed when it starts with a letter! */
|
||||
if (StrEmpty(this->edit_str_buf) && this->edit_str_buf[0] != ' ') {
|
||||
if (!StrEmpty(this->edit_str_buf) && this->edit_str_buf[0] != ' ') {
|
||||
ttd_strlcpy(_network_player_name, this->edit_str_buf, lengthof(_network_player_name));
|
||||
} else {
|
||||
ttd_strlcpy(_network_player_name, "Player", lengthof(_network_player_name));
|
||||
|
Loading…
Reference in New Issue
Block a user