mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-07 03:38:24 +01:00
(svn r12012) -Fix (r11795): Enable TownRatingTestMode during cost estimation with 'shift'-key.
This commit is contained in:
parent
cda0e9f91c
commit
7cf4f09c26
@ -572,7 +572,9 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback,
|
|||||||
!(cmd & (CMD_NETWORK_COMMAND | CMD_SHOW_NO_ERROR)) &&
|
!(cmd & (CMD_NETWORK_COMMAND | CMD_SHOW_NO_ERROR)) &&
|
||||||
(cmd & 0xFF) != CMD_PAUSE) {
|
(cmd & 0xFF) != CMD_PAUSE) {
|
||||||
/* estimate the cost. */
|
/* estimate the cost. */
|
||||||
|
SetTownRatingTestMode(true);
|
||||||
res = proc(tile, flags, p1, p2);
|
res = proc(tile, flags, p1, p2);
|
||||||
|
SetTownRatingTestMode(false);
|
||||||
if (CmdFailed(res)) {
|
if (CmdFailed(res)) {
|
||||||
res.SetGlobalErrorMessage();
|
res.SetGlobalErrorMessage();
|
||||||
ShowErrorMessage(_error_message, error_part1, x, y);
|
ShowErrorMessage(_error_message, error_part1, x, y);
|
||||||
|
Loading…
Reference in New Issue
Block a user