players.c
branchcustombridgeheads
changeset 5623 ef2a8a524a95
parent 5564 6e1b3ea1ba7f
child 5642 bfa6074e2833
equal deleted inserted replaced
5622:2f0cb276d32a 5623:ef2a8a524a95
   842 
   842 
   843 		/* This command is only executed in a multiplayer game */
   843 		/* This command is only executed in a multiplayer game */
   844 		if (!_networking) return CMD_ERROR;
   844 		if (!_networking) return CMD_ERROR;
   845 
   845 
   846 		/* Has the network client a correct ClientID? */
   846 		/* Has the network client a correct ClientID? */
   847 		if (!(flags & DC_EXEC) || cid >= MAX_CLIENT_INFO) return 0;
   847 		if (!(flags & DC_EXEC)) return 0;
       
   848 #ifdef ENABLE_NETWORK
       
   849 		if (cid >= MAX_CLIENT_INFO) return 0;
       
   850 #endif /* ENABLE_NETWORK */
   848 
   851 
   849 		/* Delete multiplayer progress bar */
   852 		/* Delete multiplayer progress bar */
   850 		DeleteWindowById(WC_NETWORK_STATUS_WINDOW, 0);
   853 		DeleteWindowById(WC_NETWORK_STATUS_WINDOW, 0);
   851 
   854 
   852 		p = DoStartupNewPlayer(false);
   855 		p = DoStartupNewPlayer(false);