equal
deleted
inserted
replaced
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); |