forked from mirror/OpenTTD
(svn r15397) -Fix [FS#2618]: a town could build a statue under a bridge.
This commit is contained in:
@@ -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. */
|
/* Statues can be build on slopes, just like houses. Only the steep slopes is a no go. */
|
||||||
if (IsSteepSlope(GetTileSlope(tile, NULL))) return false;
|
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) &&
|
if (!IsTileType(tile, MP_HOUSE) &&
|
||||||
!IsTileType(tile, MP_CLEAR) &&
|
!IsTileType(tile, MP_CLEAR) &&
|
||||||
|
Reference in New Issue
Block a user