# HG changeset patch # User rubidium # Date 1216560599 0 # Node ID 61407141de90f28d7fde289cbb5840071a92b9f6 # Parent fa2ee5ae35b588a74639cbdd91cd258a351ad5be (svn r13754) -Fix (r13731): one could not join companies from the command line. diff -r fa2ee5ae35b5 -r 61407141de90 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);