1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-17 19:49:10 +00:00

(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.

This commit is contained in:
rubidium
2009-12-21 20:32:20 +00:00
parent a7cacd98ed
commit 0cb84effc8

View File

@@ -2328,7 +2328,7 @@ struct NetworkCompanyPasswordWindow : public QueryStringBaseWindow {
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: