diff options
author | Darkvater <Darkvater@openttd.org> | 2005-04-06 18:44:34 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-04-06 18:44:34 +0000 |
commit | f208f5fa10b805e4e8cfd10f03abf554781bdd2b (patch) | |
tree | 4ef7be42843d94cc5352ed8f9933253d6810e764 /network.c | |
parent | 6a341663cc5646fe544fc45db2e1e77a57eeacfa (diff) | |
download | openttd-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.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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) |