diff options
author | Darkvater <darkvater@openttd.org> | 2006-10-15 17:01:19 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-10-15 17:01:19 +0000 |
commit | b2110cbaedbbbbb18769e4594f416dfef1c733fd (patch) | |
tree | 2918811729d57202b30a05affd69972a8168873b /network_client.c | |
parent | 5a1ee9e02b21b6be130beda5d2c6a51c8b00239f (diff) | |
download | openttd-b2110cbaedbbbbb18769e4594f416dfef1c733fd.tar.xz |
(svn r6780) -Codechange: Remove GPMI leftovers (-b impersonisation of AI in MP).
Diffstat (limited to 'network_client.c')
-rw-r--r-- | network_client.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/network_client.c b/network_client.c index 95e66a4d2..8f6379a67 100644 --- a/network_client.c +++ b/network_client.c @@ -340,13 +340,6 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_CLIENT_INFO) if (index == _network_own_client_index) { _network_playas = playas; - /* Are we a ai-network-client? Are we not joining as a SPECTATOR (playas == 0, means SPECTATOR) */ - if (_ai.network_client && playas != 0) { - if (_ai.network_playas == PLAYER_SPECTATOR) - AI_StartNewAI(playas - 1); - - _ai.network_playas = playas - 1; - } } ci = NetworkFindClientInfoFromIndex(index); @@ -540,17 +533,6 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_MAP) _patches.autorenew_money = GetPlayer(_local_player)->engine_renew_money; DeleteWindowById(WC_NETWORK_STATUS_WINDOW, 0); } - - /* Check if we are an ai-network-client, and if so, disable GUI */ - if (_ai.network_client) { - _ai.network_playas = _local_player; - _local_player = PLAYER_SPECTATOR; - - if (_ai.network_playas != PLAYER_SPECTATOR) { - /* If we didn't join the game as a spectator, activate the AI */ - AI_StartNewAI(_ai.network_playas); - } - } } return NETWORK_RECV_STATUS_OKAY; |