(svn r8155) -Fix: fixed compilation when --disable-network is in use

This commit is contained in:
bjarni
2007-01-16 15:20:22 +00:00
parent 990e1a51f0
commit b10556a90e
2 changed files with 11 additions and 1 deletions

View File

@@ -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;