From 6c3a5b5b17de97be292fc9442f6bd693973114ee Mon Sep 17 00:00:00 2001 From: Matt Kimber Date: Mon, 21 Dec 2020 22:46:38 +0000 Subject: Fix c02ef3e4: [NewGRF] Variable 0x44 was always HZB_TOWN_EDGE for road stops. (#8400) --- src/newgrf_roadtype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/newgrf_roadtype.cpp b/src/newgrf_roadtype.cpp index c49faa59f..3f6150cd3 100644 --- a/src/newgrf_roadtype.cpp +++ b/src/newgrf_roadtype.cpp @@ -45,7 +45,7 @@ const Town *t = nullptr; if (IsRoadDepotTile(this->tile)) { t = Depot::GetByTile(this->tile)->town; - } else if (IsTileType(this->tile, MP_ROAD)) { + } else { t = ClosestTownFromTile(this->tile, UINT_MAX); } return t != nullptr ? GetTownRadiusGroup(t, this->tile) : HZB_TOWN_EDGE; -- cgit v1.2.3-54-g00ecf