From 4431e82bebf61c54347ca21764a984e81f51ae4f Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 7 Feb 2009 16:02:29 +0000 Subject: (svn r15397) -Fix [FS#2618]: a town could build a statue under a bridge. --- src/town_cmd.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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) && -- cgit v1.2.3-70-g09d2