summaryrefslogtreecommitdiff
path: root/src/players.cpp
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2007-01-16 15:20:22 +0000
committerbjarni <bjarni@openttd.org>2007-01-16 15:20:22 +0000
commitccbe68d5bc1098858f1ff57f527de8c1180259fc (patch)
tree4453e12b8f59a004f8a77d7d95d1289a030e460f /src/players.cpp
parent1395524390d79196aafa303c773d182662b38189 (diff)
downloadopenttd-ccbe68d5bc1098858f1ff57f527de8c1180259fc.tar.xz
(svn r8155) -Fix: fixed compilation when --disable-network is in use
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 be83763d8..6301d2881 100644
--- a/src/players.cpp
+++ b/src/players.cpp
@@ -836,7 +836,9 @@ int32 CmdPlayerCtrl(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
* _local_player/_network_playas: what they play as
* cid = requested company/player of joining client */
Player *p;
+#ifdef ENABLE_NETWORK
uint16 cid = p2; // ClientID
+#endif /* ENABLE_NETWORK */
/* This command is only executed in a multiplayer game */
if (!_networking) return CMD_ERROR;