From 4df2640f87aee148a6dd2c964b6e3fc4f425a325 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 15 Oct 2023 22:35:24 +0100 Subject: [PATCH] Fix: Tile slope missing from road stops varact2 variable 0x42 --- src/newgrf_roadstop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_roadstop.cpp b/src/newgrf_roadstop.cpp index 1055ea84bb..c3410e3032 100644 --- a/src/newgrf_roadstop.cpp +++ b/src/newgrf_roadstop.cpp @@ -90,7 +90,7 @@ uint32_t RoadStopScopeResolver::GetVariable(byte variable, [[maybe_unused]] uint return 2; /* Terrain type */ - case 0x42: return this->tile == INVALID_TILE ? 0 : GetTerrainType(this->tile, TCX_NORMAL); // terrain_type + case 0x42: return this->tile == INVALID_TILE ? 0 : (GetTileSlope(this->tile) << 8 | GetTerrainType(this->tile, TCX_NORMAL)); /* Road type */ case 0x43: return get_road_type_variable(RTT_ROAD);