summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-01-29 14:02:18 +0000
committerfrosch <frosch@openttd.org>2008-01-29 14:02:18 +0000
commit7cf4f09c2605d10287530b8cf6dd306426826c79 (patch)
tree4a640f0a38bc66c52799b427cfbe55bb0b6e82e7 /src
parentcda0e9f91c6633cb0917935a40ce7cd3a37f4563 (diff)
downloadopenttd-7cf4f09c2605d10287530b8cf6dd306426826c79.tar.xz
(svn r12012) -Fix (r11795): Enable TownRatingTestMode during cost estimation with 'shift'-key.
Diffstat (limited to 'src')
-rw-r--r--src/command.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command.cpp b/src/command.cpp
index 40b3ff9b8..c550dcb8f 100644
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -572,7 +572,9 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback,
!(cmd & (CMD_NETWORK_COMMAND | CMD_SHOW_NO_ERROR)) &&
(cmd & 0xFF) != CMD_PAUSE) {
/* estimate the cost. */
+ SetTownRatingTestMode(true);
res = proc(tile, flags, p1, p2);
+ SetTownRatingTestMode(false);
if (CmdFailed(res)) {
res.SetGlobalErrorMessage();
ShowErrorMessage(_error_message, error_part1, x, y);