summaryrefslogtreecommitdiff
path: root/src/tunnelbridge_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-11-23 16:34:27 +0000
committerfrosch <frosch@openttd.org>2008-11-23 16:34:27 +0000
commite35be92a3a1bb75a8bd4f063b4d3cb3a435a6794 (patch)
treee32bca90e69b2ab9b11a41d95f5e55ad36172f05 /src/tunnelbridge_cmd.cpp
parentc4179d4ea95fefc76fc21e03771fdb1d9329bbd4 (diff)
downloadopenttd-e35be92a3a1bb75a8bd4f063b4d3cb3a435a6794.tar.xz
(svn r14613) -Fix [FS#2420]: When building industries, clear the tiles as OWNER_TOWN instead of the founder to take care of protected buildings and to not get stressed by town ratings.
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r--src/tunnelbridge_cmd.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp
index 70ecf12ca..db45eb2ef 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -556,7 +556,10 @@ CommandCost CmdBuildTunnel(TileIndex start_tile, uint32 flags, uint32 p1, uint32
/* slope of end tile must be complementary to the slope of the start tile */
if (end_tileh != ComplementSlope(start_tileh)) {
- /* Check if there is a structure on the terraformed tile. Do not add the cost, that will be done by the terraforming */
+ /* Check if there is a structure on the terraformed tile. Do not add the cost, that will be done by the terraforming
+ * Note: Currently the town rating is also affected by this clearing-test. So effectivly the player is punished twice for clearing
+ * the tree on end_tile.
+ */
ret = DoCommand(end_tile, 0, 0, DC_AUTO, CMD_LANDSCAPE_CLEAR);
if (CmdFailed(ret)) return_cmd_error(STR_5005_UNABLE_TO_EXCAVATE_LAND);