changeset 14052:a2be9df79ee0 draft

(svn r18595) -Fix (r18277): one couldn't enter test via the keyboard in the company password window. Also replace a magic number with a enumified constant.
author rubidium <rubidium@openttd.org>
date Mon, 21 Dec 2009 20:32:20 +0000
parents c4abaa58f16d
children 0fadb3eca304
files src/network/network_gui.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -2328,7 +2328,7 @@
 	virtual EventState OnKeyPress(uint16 key, uint16 keycode)
 	{
 		EventState state = ES_NOT_HANDLED;
-		switch (this->HandleEditBoxKey(4, key, keycode, state)) {
+		switch (this->HandleEditBoxKey(NCPWW_PASSWORD, key, keycode, state)) {
 			default: break;
 
 			case HEBR_CONFIRM: