summaryrefslogtreecommitdiff
path: root/src/players.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-01-11 00:30:32 +0000
committerrubidium <rubidium@openttd.org>2008-01-11 00:30:32 +0000
commit04f936c2c67a58f09bb307f9b021ab7a11b885da (patch)
tree05e3aa4702dd2e570adeaebdf8acd63559e5165f /src/players.cpp
parente5d33482b49afdfa91fb0e61b210479346e47484 (diff)
downloadopenttd-04f936c2c67a58f09bb307f9b021ab7a11b885da.tar.xz
(svn r11811) -Fix: make compilation without networking work again (and thus move the debugdumpcommand stuff out of the network 'area').
Diffstat (limited to 'src/players.cpp')
-rw-r--r--src/players.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/players.cpp b/src/players.cpp
index f886e287a..3945b2424 100644
--- a/src/players.cpp
+++ b/src/players.cpp
@@ -811,10 +811,12 @@ CommandCost CmdPlayerCtrl(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (_local_player != _network_playas && _network_playas == p->index) {
assert(_local_player == PLAYER_SPECTATOR);
SetLocalPlayer(p->index);
+#ifdef ENABLE_NETWORK
if (!StrEmpty(_network_default_company_pass)) {
char *password = _network_default_company_pass;
NetworkChangeCompanyPassword(1, &password);
}
+#endif /* ENABLE_NETWORK */
MarkWholeScreenDirty();
}