(svn r13754) -Fix (r13731): one could not join companies from the command line.
authorrubidium
Sun, 20 Jul 2008 13:29:59 +0000
changeset 9667 61407141de90
parent 9666 fa2ee5ae35b5
child 9668 b0863ac5794b
(svn r13754) -Fix (r13731): one could not join companies from the command line.
src/openttd.cpp
--- a/src/openttd.cpp	Sun Jul 20 12:59:27 2008 +0000
+++ b/src/openttd.cpp	Sun Jul 20 13:29:59 2008 +0000
@@ -629,7 +629,7 @@
 
 				if (_network_playas != PLAYER_SPECTATOR) {
 					_network_playas--;
-					if (!IsValidPlayerID(_network_playas)) return false;
+					if (_network_playas >= MAX_PLAYERS) return false;
 				}
 			}
 			if (port != NULL) rport = atoi(port);