From d8182b7e1533027d43da6508652ecfc1b056548f Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 14 Jun 2020 13:04:26 +0200 Subject: [PATCH] Change: Allow command cost-estimation while paused. --- src/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.cpp b/src/command.cpp index 8890381784..453f305d38 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; }