network_client.c
changeset 1797 fa156be69235
parent 1500 a66721629bc0
child 1820 d03c56850dc2
equal deleted inserted replaced
1796:614d996f6be7 1797:fa156be69235
   528 			if (_network_playas == OWNER_SPECTATOR) {
   528 			if (_network_playas == OWNER_SPECTATOR) {
   529 				// The client wants to be a spectator..
   529 				// The client wants to be a spectator..
   530 				_local_player = OWNER_SPECTATOR;
   530 				_local_player = OWNER_SPECTATOR;
   531 				DeleteWindowById(WC_NETWORK_STATUS_WINDOW, 0);
   531 				DeleteWindowById(WC_NETWORK_STATUS_WINDOW, 0);
   532 			} else {
   532 			} else {
   533 				// send a command to make a new player
   533 				/* We have arrived and ready to start playing; send a command to make a new player;
       
   534 				 * the server will give us a client-id and let us in */
   534 				_local_player = 0;
   535 				_local_player = 0;
   535 				NetworkSend_Command(0, 0, 0, CMD_PLAYER_CTRL, NULL);
   536 				NetworkSend_Command(0, 0, 0, CMD_PLAYER_CTRL, NULL);
   536 				_local_player = OWNER_SPECTATOR;
   537 				_local_player = OWNER_SPECTATOR;
   537 			}
   538 			}
   538 		} else {
   539 		} else {