(svn r12012) -Fix (r11795): Enable TownRatingTestMode during cost estimation with 'shift'-key.
authorfrosch
Tue, 29 Jan 2008 14:02:18 +0000
changeset 8938 79bcde6bbe6c
parent 8937 40f1d2e4c833
child 8939 9d51d72e7e3d
(svn r12012) -Fix (r11795): Enable TownRatingTestMode during cost estimation with 'shift'-key.
src/command.cpp
--- a/src/command.cpp	Tue Jan 29 13:54:52 2008 +0000
+++ b/src/command.cpp	Tue Jan 29 14:02:18 2008 +0000
@@ -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);