summaryrefslogtreecommitdiff
path: root/network.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-04-06 18:44:34 +0000
committerDarkvater <Darkvater@openttd.org>2005-04-06 18:44:34 +0000
commitf208f5fa10b805e4e8cfd10f03abf554781bdd2b (patch)
tree4ef7be42843d94cc5352ed8f9933253d6810e764 /network.c
parent6a341663cc5646fe544fc45db2e1e77a57eeacfa (diff)
downloadopenttd-f208f5fa10b805e4e8cfd10f03abf554781bdd2b.tar.xz
(svn r2157) - Feature (request): [ 1166978 ] Focus keyboard on input-box in Multiplayer Menu
- Feature: If the to be started server is using a password, draw a red '*' after the set password button to remind the user.
Diffstat (limited to 'network.c')
-rw-r--r--network.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/network.c b/network.c
index 4b4aba777..f4c7ccc06 100644
--- a/network.c
+++ b/network.c
@@ -925,11 +925,7 @@ static void NetworkInitGameInfo(void)
_network_game_info.map_height = MapSizeY();
_network_game_info.map_set = _opt.landscape;
- if (_network_game_info.server_password[0] == '\0') {
- _network_game_info.use_password = 0;
- } else {
- _network_game_info.use_password = 1;
- }
+ _network_game_info.use_password = (_network_server_password[0] == '\0') ? 0 : 1;
// We use _network_client_info[MAX_CLIENT_INFO - 1] to store the server-data in it
// The index is NETWORK_SERVER_INDEX ( = 1)