command.c
changeset 215 a829221214b5
parent 213 770e504a6e51
child 395 4c990f33dab7
equal deleted inserted replaced
214:f1ebbfefc3f8 215:a829221214b5
   383 	int x = GET_TILE_X(tile)*16;
   383 	int x = GET_TILE_X(tile)*16;
   384 	int y = GET_TILE_Y(tile)*16;
   384 	int y = GET_TILE_Y(tile)*16;
   385 
   385 
   386 	assert(_docommand_recursive == 0);
   386 	assert(_docommand_recursive == 0);
   387 
   387 
       
   388 	if (_networking && !(cmd & CMD_NET_INSTANT) && _pause) {
       
   389 		// When the game is paused, and we are in a network game
       
   390 		//  we do not allow any commands. This is because
       
   391 		//  of some technical reasons
       
   392 		ShowErrorMessage(-1, STR_MULTIPLAYER_PAUSED, x, y);
       
   393 		_docommand_recursive = 0;
       
   394 		return true;
       
   395 	}
       
   396 
   388 	_error_message = INVALID_STRING_ID;
   397 	_error_message = INVALID_STRING_ID;
   389 	_error_message_2 = cmd >> 16;
   398 	_error_message_2 = cmd >> 16;
   390 	_additional_cash_required = 0;
   399 	_additional_cash_required = 0;
   391 
   400 
   392 	// spectator has no rights.
   401 	// spectator has no rights.