summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/players.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/players.cpp b/src/players.cpp
index 56c117c94..0b4144614 100644
--- a/src/players.cpp
+++ b/src/players.cpp
@@ -840,12 +840,10 @@ CommandCost CmdPlayerCtrl(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
NetworkClientInfo *ci = &_network_client_info[cid];
ci->client_playas = PLAYER_SPECTATOR;
NetworkUpdateClientInfo(ci->client_index);
- } else
-#endif /* ENABLE_NETWORK */
- {
+ } else if (_local_player == PLAYER_SPECATOR) {
_network_playas = PLAYER_SPECTATOR;
- SetLocalPlayer(PLAYER_SPECTATOR);
}
+#endif /* ENABLE_NETWORK */
break;
}