1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2025-12-10 15:02:06 +01:00

Fix #9071: Don't consider tram tracks when growing towns (#14833)

This commit is contained in:
Tyler Trahan
2025-12-01 11:44:28 -05:00
committed by GitHub
parent e96f35cda9
commit faf3bb9739

View File

@@ -1476,9 +1476,7 @@ static inline bool RoadTypesAllowHouseHere(TileIndex t)
allow = true;
RoadType road_rt = GetRoadTypeRoad(cur_tile);
RoadType tram_rt = GetRoadTypeTram(cur_tile);
if (road_rt != INVALID_ROADTYPE && !GetRoadTypeInfo(road_rt)->flags.Test(RoadTypeFlag::NoHouses)) return true;
if (tram_rt != INVALID_ROADTYPE && !GetRoadTypeInfo(tram_rt)->flags.Test(RoadTypeFlag::NoHouses)) return true;
}
/* If no road was found surrounding the tile we can allow building the house since there is