(svn r3430) - You can of course not join when there are more companies than the maximum set, not the other way around.
authorDarkvater
Wed, 25 Jan 2006 19:14:50 +0000
changeset 2882 54af2e527411
parent 2881 1ffbbdbf1685
child 2883 e1efe385e89c
(svn r3430) - You can of course not join when there are more companies than the maximum set, not the other way around.
network_server.c
--- a/network_server.c	Wed Jan 25 19:03:50 2006 +0000
+++ b/network_server.c	Wed Jan 25 19:14:50 2006 +0000
@@ -615,7 +615,7 @@
 	// 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;
 			}