From f3ec6abbbb4c55b5f1003f4b45ab16b8e9dfcaef Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 1 Jan 2024 17:52:03 +0000 Subject: [PATCH] Fix road stops/waypoints not using road type custom one-way sprites --- src/station_cmd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 854e02993e..8f7c3b523a 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -3613,7 +3613,9 @@ draw_default_foundation: DisallowedRoadDirections drd = GetDriveThroughStopDisallowedRoadDirections(ti->tile); if (drd != DRD_NONE && (stopspec == nullptr || !HasBit(stopspec->flags, RSF_NO_ONE_WAY_OVERLAY))) { - DrawGroundSpriteAt(SPR_ONEWAY_BASE + drd - 1 + ((axis == AXIS_X) ? 0 : 3), PAL_NONE, 8, 8, 0); + SpriteID oneway = GetCustomRoadSprite(road_rti, ti->tile, ROTSG_ONEWAY); + if (oneway == 0) oneway = SPR_ONEWAY_BASE; + DrawGroundSpriteAt(oneway + drd - 1 + ((axis == AXIS_X) ? 0 : 3), PAL_NONE, 8, 8, 0); } } else { /* Non-drivethrough road stops are only valid for roads. */