equal
deleted
inserted
replaced
1926 static bool DoBuildStatueOfCompany(TileIndex tile, TownID town_id) |
1926 static bool DoBuildStatueOfCompany(TileIndex tile, TownID town_id) |
1927 { |
1927 { |
1928 PlayerID old; |
1928 PlayerID old; |
1929 CommandCost r; |
1929 CommandCost r; |
1930 |
1930 |
1931 if (GetTileSlope(tile, NULL) != SLOPE_FLAT) return false; |
1931 /* Statues can be build on slopes, just like houses. Only the steep slopes is a no go. */ |
|
1932 if (IsSteepSlope(GetTileSlope(tile, NULL))) return false; |
1932 |
1933 |
1933 if (!IsTileType(tile, MP_HOUSE) && |
1934 if (!IsTileType(tile, MP_HOUSE) && |
1934 !IsTileType(tile, MP_CLEAR) && |
1935 !IsTileType(tile, MP_CLEAR) && |
1935 !IsTileType(tile, MP_TREES)) { |
1936 !IsTileType(tile, MP_TREES)) { |
1936 return false; |
1937 return false; |