From afccf0418877f0e50983c72ba421b3541e9f8b0b Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 26 Jan 2022 22:33:07 +0000 Subject: [PATCH] Report road waypoint tiles as road to GRFs --- src/newgrf_commons.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/newgrf_commons.cpp b/src/newgrf_commons.cpp index 55674a60db..8717cb798b 100644 --- a/src/newgrf_commons.cpp +++ b/src/newgrf_commons.cpp @@ -450,6 +450,9 @@ uint32 GetNearbyTileInformation(TileIndex tile, bool grf_version8) /* Fake tile type for trees on shore */ if (IsTileType(tile, MP_TREES) && GetTreeGround(tile) == TREE_GROUND_SHORE) tile_type = MP_WATER; + /* Fake tile type for road waypoints */ + if (IsRoadWaypointTile(tile)) tile_type = MP_ROAD; + int z; Slope tileh = GetTilePixelSlope(tile, &z); /* Return 0 if the tile is a land tile */