src/players.cpp
changeset 5943 9acc30eb83cd
parent 5919 2b58160d667d
child 6001 1e4c5406cd1a
equal deleted inserted replaced
5942:2ad18c926e84 5943:9acc30eb83cd
   834 		 *
   834 		 *
   835 		 * Other client(s)/server:
   835 		 * Other client(s)/server:
   836 		 * _local_player/_network_playas: what they play as
   836 		 * _local_player/_network_playas: what they play as
   837 		 * cid = requested company/player of joining client */
   837 		 * cid = requested company/player of joining client */
   838 		Player *p;
   838 		Player *p;
       
   839 #ifdef ENABLE_NETWORK
   839 		uint16 cid = p2; // ClientID
   840 		uint16 cid = p2; // ClientID
       
   841 #endif /* ENABLE_NETWORK */
   840 
   842 
   841 		/* This command is only executed in a multiplayer game */
   843 		/* This command is only executed in a multiplayer game */
   842 		if (!_networking) return CMD_ERROR;
   844 		if (!_networking) return CMD_ERROR;
   843 
   845 
   844 		/* Has the network client a correct ClientID? */
   846 		/* Has the network client a correct ClientID? */