summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-06-23 00:11:11 +0000
committeryexo <yexo@openttd.org>2010-06-23 00:11:11 +0000
commit9683b8746674af9963fb13f00e020edf1dba91f4 (patch)
treeb0bc93e5dc23f744d3946483b38812652eb7b617
parent977f72f872fa882d8a05adbdd4cc9f4cdb4c29c9 (diff)
downloadopenttd-9683b8746674af9963fb13f00e020edf1dba91f4.tar.xz
(svn r20012) -Fix: when joining a company with a password you could only enter 20 characters of the password
-rw-r--r--src/company_gui.cpp2
-rw-r--r--src/network/network_gui.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp
index 9b3cb1ee9..c1ab78811 100644
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -1982,7 +1982,7 @@ struct CompanyWindow : Window
MarkWholeScreenDirty();
} else if (NetworkCompanyIsPassworded(company)) {
/* ask for the password */
- ShowQueryString(STR_EMPTY, STR_NETWORK_NEED_COMPANY_PASSWORD_CAPTION, 20, 180, this, CS_ALPHANUMERAL, QSF_NONE);
+ ShowQueryString(STR_EMPTY, STR_NETWORK_NEED_COMPANY_PASSWORD_CAPTION, NETWORK_PASSWORD_LENGTH, 180, this, CS_ALPHANUMERAL, QSF_NONE);
} else {
/* just send the join command */
NetworkClientRequestMove(company);
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index ba2cc25f0..6172e1643 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -2263,7 +2263,7 @@ void ShowNetworkNeedPassword(NetworkPasswordType npt)
case NETWORK_GAME_PASSWORD: caption = STR_NETWORK_NEED_GAME_PASSWORD_CAPTION; break;
case NETWORK_COMPANY_PASSWORD: caption = STR_NETWORK_NEED_COMPANY_PASSWORD_CAPTION; break;
}
- ShowQueryString(STR_EMPTY, caption, 20, 180, w, CS_ALPHANUMERAL, QSF_NONE);
+ ShowQueryString(STR_EMPTY, caption, NETWORK_PASSWORD_LENGTH, 180, w, CS_ALPHANUMERAL, QSF_NONE);
}