From bf013097a7290fffa3f1d724a2b6485b453964cf Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Mon, 29 Jan 2024 01:27:34 +0000 Subject: [PATCH] Fix #11918: Houses should build only next to road stops, not any station type. (#11919) --- src/town_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index fe426a72fb..b68e61c476 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -1358,7 +1358,7 @@ static inline bool RoadTypesAllowHouseHere(TileIndex t) TileIndex cur_tile = t + ToTileIndexDiff(*ptr); if (!IsValidTile(cur_tile)) continue; - if (!(IsTileType(cur_tile, MP_ROAD) || IsTileType(cur_tile, MP_STATION))) continue; + if (!(IsTileType(cur_tile, MP_ROAD) || IsRoadStopTile(cur_tile))) continue; allow = true; RoadType road_rt = GetRoadTypeRoad(cur_tile);