diff options
author | frosch <frosch@openttd.org> | 2008-11-23 16:34:27 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-11-23 16:34:27 +0000 |
commit | aaf21df68bf49072e13866eb62701ef8050dafc7 (patch) | |
tree | e32bca90e69b2ab9b11a41d95f5e55ad36172f05 /src/tunnelbridge_cmd.cpp | |
parent | e50a4f20539b07475e73c88cc510456f2057f483 (diff) | |
download | openttd-aaf21df68bf49072e13866eb62701ef8050dafc7.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.cpp | 5 |
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); |