diff options
author | frosch <frosch@openttd.org> | 2020-06-14 13:04:26 +0200 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2020-06-18 08:59:27 +0100 |
commit | d8182b7e1533027d43da6508652ecfc1b056548f (patch) | |
tree | c4962020c55d5476213dd832f766b516e37914f8 /src | |
parent | 9895ced6af96b2e6d2e2569383c72a4c6b930286 (diff) | |
download | openttd-d8182b7e1533027d43da6508652ecfc1b056548f.tar.xz |
Change: Allow command cost-estimation while paused.
Diffstat (limited to 'src')
-rw-r--r-- | src/command.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.cpp b/src/command.cpp index 889038178..453f305d3 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -575,7 +575,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallbac int x = TileX(tile) * TILE_SIZE; int y = TileY(tile) * TILE_SIZE; - if (_pause_mode != PM_UNPAUSED && !IsCommandAllowedWhilePaused(cmd)) { + if (_pause_mode != PM_UNPAUSED && !IsCommandAllowedWhilePaused(cmd) && !estimate_only) { ShowErrorMessage(GB(cmd, 16, 16), STR_ERROR_NOT_ALLOWED_WHILE_PAUSED, WL_INFO, x, y); return false; } |