summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-29 17:01:42 +0000
committersmatz <smatz@openttd.org>2008-05-29 17:01:42 +0000
commit713923cd7efe2f2ea66ab0369d423809d465607f (patch)
tree63dc9fd20ddbbd5d2e75517498989231ae05ae5a /src
parentc624a20a32fb2c9dce2c21b4fbcb90f203074eeb (diff)
downloadopenttd-713923cd7efe2f2ea66ab0369d423809d465607f.tar.xz
(svn r13330) -Fix: 'Player name' dialog was broken in two ways
Diffstat (limited to 'src')
-rw-r--r--src/network/network_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 2c3cc5721..f58d69f76 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -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));