mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 17:19:09 +00:00
Fix #11918: Roads should build only next to road stops, not any station type.
This commit is contained in:
@@ -1358,7 +1358,7 @@ static inline bool RoadTypesAllowHouseHere(TileIndex t)
|
|||||||
TileIndex cur_tile = t + ToTileIndexDiff(*ptr);
|
TileIndex cur_tile = t + ToTileIndexDiff(*ptr);
|
||||||
if (!IsValidTile(cur_tile)) continue;
|
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;
|
allow = true;
|
||||||
|
|
||||||
RoadType road_rt = GetRoadTypeRoad(cur_tile);
|
RoadType road_rt = GetRoadTypeRoad(cur_tile);
|
||||||
|
Reference in New Issue
Block a user