mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r3430) - You can of course not join when there are more companies than the maximum set, not the other way around.
This commit is contained in:
parent
2b287a9e72
commit
a8758cbf5e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user