summaryrefslogtreecommitdiff
path: root/network.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-06-04 07:35:12 +0000
committertron <tron@openttd.org>2005-06-04 07:35:12 +0000
commit1273f21ff58b0746584b02c0608962ef5b677a7c (patch)
tree88285fef5e7b9d4fce88501d60b958183e8e1a9a /network.c
parent793eba3a3a2fac64e0e4bd860d8c04d75061abd4 (diff)
downloadopenttd-1273f21ff58b0746584b02c0608962ef5b677a7c.tar.xz
(svn r2405) Simplify a few '? true : false' and '? false : true', especially the latter is confusing
Diffstat (limited to 'network.c')
-rw-r--r--network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/network.c b/network.c
index 91b99480e..3dcff1b30 100644
--- a/network.c
+++ b/network.c
@@ -925,7 +925,7 @@ static void NetworkInitGameInfo(void)
_network_game_info.map_height = MapSizeY();
_network_game_info.map_set = _opt.landscape;
- _network_game_info.use_password = (_network_server_password[0] == '\0') ? 0 : 1;
+ _network_game_info.use_password = (_network_server_password[0] != '\0');
// We use _network_client_info[MAX_CLIENT_INFO - 1] to store the server-data in it
// The index is NETWORK_SERVER_INDEX ( = 1)