diff src/command.cpp @ 8442:1a90922472a6 draft

(svn r12012) -Fix (r11795): Enable TownRatingTestMode during cost estimation with 'shift'-key.
author frosch <frosch@openttd.org>
date Tue, 29 Jan 2008 14:02:18 +0000 (2008-01-29)
parents ea2c123b3655
children 99f058177c49
line wrap: on
line diff
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -572,7 +572,9 @@
 			!(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);