command.c
branch0.5
changeset 5410 68d63813dd0e
parent 5067 870dfdcef898
child 5499 d8a566b68999
equal deleted inserted replaced
5409:114f174beabc 5410:68d63813dd0e
   461 		(cmd & 0xFF) == CMD_REMOVE_LONG_ROAD;
   461 		(cmd & 0xFF) == CMD_REMOVE_LONG_ROAD;
   462 
   462 
   463 	_docommand_recursive = 1;
   463 	_docommand_recursive = 1;
   464 
   464 
   465 	// cost estimation only?
   465 	// cost estimation only?
   466 	if (!IsGeneratingWorld() && _shift_pressed && IsLocalPlayer() && !(cmd & (CMD_NETWORK_COMMAND | CMD_SHOW_NO_ERROR))) {
   466 	if (!IsGeneratingWorld() &&
       
   467 			_shift_pressed &&
       
   468 			IsLocalPlayer() &&
       
   469 			!(cmd & (CMD_NETWORK_COMMAND | CMD_SHOW_NO_ERROR)) &&
       
   470 			(cmd & 0xFF) != CMD_PAUSE) {
   467 		// estimate the cost.
   471 		// estimate the cost.
   468 		res = proc(tile, flags, p1, p2);
   472 		res = proc(tile, flags, p1, p2);
   469 		if (CmdFailed(res)) {
   473 		if (CmdFailed(res)) {
   470 			if (res & 0xFFFF) _error_message = res & 0xFFFF;
   474 			if (res & 0xFFFF) _error_message = res & 0xFFFF;
   471 			ShowErrorMessage(_error_message, error_part1, x, y);
   475 			ShowErrorMessage(_error_message, error_part1, x, y);