diff options
author | rubidium <rubidium@openttd.org> | 2008-07-18 16:40:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-07-18 16:40:29 +0000 |
commit | 3a799389ebf915cc59b6e85346d837621ebe771a (patch) | |
tree | 82319a3d42401c6d6fa4944e99863807f05c6f5f /src/network/network_client.cpp | |
parent | 891bec7e23a0a077df93b8fd1fe156ef059df8b4 (diff) | |
download | openttd-3a799389ebf915cc59b6e85346d837621ebe771a.tar.xz |
(svn r13731) -Codechange: make a pool of the array of players.
Diffstat (limited to 'src/network/network_client.cpp')
-rw-r--r-- | src/network/network_client.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp index 5a3c7dab6..cc8e746f5 100644 --- a/src/network/network_client.cpp +++ b/src/network/network_client.cpp @@ -624,9 +624,7 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_MAP) /* New company/spectator (invalid player) or company we want to join is not active * Switch local player to spectator and await the server's judgement */ - if (_network_playas == PLAYER_NEW_COMPANY || !IsValidPlayerID(_network_playas) || - !GetPlayer(_network_playas)->is_active) { - + if (_network_playas == PLAYER_NEW_COMPANY || !IsValidPlayerID(_network_playas)) { SetLocalPlayer(PLAYER_SPECTATOR); if (_network_playas != PLAYER_SPECTATOR) { |