summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-07 16:02:29 +0000
committerrubidium <rubidium@openttd.org>2009-02-07 16:02:29 +0000
commit4431e82bebf61c54347ca21764a984e81f51ae4f (patch)
tree115ad9190b40fdfefcff0be56fc4283314df349e
parentd5e2154e90df4cede181a9baf9d47e925adfa71d (diff)
downloadopenttd-4431e82bebf61c54347ca21764a984e81f51ae4f.tar.xz
(svn r15397) -Fix [FS#2618]: a town could build a statue under a bridge.
-rw-r--r--src/town_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index eafae3425..36442ad1d 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -2182,6 +2182,8 @@ static bool DoBuildStatueOfCompany(TileIndex tile, TownID town_id)
{
/* Statues can be build on slopes, just like houses. Only the steep slopes is a no go. */
if (IsSteepSlope(GetTileSlope(tile, NULL))) return false;
+ /* Don't build statues under bridges. */
+ if (MayHaveBridgeAbove(tile) && IsBridgeAbove(tile)) return false;
if (!IsTileType(tile, MP_HOUSE) &&
!IsTileType(tile, MP_CLEAR) &&