diff options
author | Darkvater <darkvater@openttd.org> | 2006-01-25 19:14:50 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-01-25 19:14:50 +0000 |
commit | a8758cbf5e2e80ae8ca96163acf57bcc2d3df6f5 (patch) | |
tree | a52fe665846310fdf7bc913dcfc2f1c64de36ceb | |
parent | 2b287a9e72c0b717f9d39915441a0d681611124b (diff) | |
download | openttd-a8758cbf5e2e80ae8ca96163acf57bcc2d3df6f5.tar.xz |
(svn r3430) - You can of course not join when there are more companies than the maximum set, not the other way around.
-rw-r--r-- | network_server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/network_server.c b/network_server.c index 8dd6c36c7..ff94a461a 100644 --- a/network_server.c +++ b/network_server.c @@ -615,7 +615,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_JOIN) // join another company does not affect these values switch (playas) { case 0: /* New company */ - if (_network_game_info.companies_max >= _network_game_info.companies_on) { + if (_network_game_info.companies_on >= _network_game_info.companies_max) { SEND_COMMAND(PACKET_SERVER_ERROR)(cs, NETWORK_ERROR_FULL); return; } |