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
commite31e514474eddb206704bbc9904d4028307eee14 (patch)
tree115ad9190b40fdfefcff0be56fc4283314df349e
parentabb17d64a106a66f30f84bc20ce69d0f35b5fcc6 (diff)
downloadopenttd-e31e514474eddb206704bbc9904d4028307eee14.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) &&