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 dP
parent 3d28f90311
commit bd264145e5

View File

@@ -1645,9 +1645,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