1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Fix narrow station base drawing with incorrect rotation

This commit is contained in:
mix
2025-04-16 12:30:34 +01:00
committed by GitHub
parent e3a734611c
commit cfaff31aff
2 changed files with 2 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
- Fix: [#23108] Missing pieces on Hypercoaster and Hyper-Twister, even with the all drawable track pieces cheat enabled.
- Fix: [#24013] Failure to load a scenario preview image (minimap) could lead to an uncaught exception error message.
- Fix: [#24142] [Plugin] Track origin is miscalculated on downward slopes.
- Fix: [#24220] Narrow station platforms have missing sides on certain rotations.
0.4.21 (2025-04-05)
------------------------------------------------------------------------

View File

@@ -741,7 +741,7 @@ bool TrackPaintUtilDrawNarrowStationPlatform(
if (direction & 1)
{
PaintAddImageAsParent(
session, colour.WithIndex(kStationBaseTypeSpriteIndexes[EnumValue(baseType)][0]), { 0, 0, height + baseOffsetZ },
session, colour.WithIndex(kStationBaseTypeSpriteIndexes[EnumValue(baseType)][1]), { 0, 0, height + baseOffsetZ },
{ { 0, 2, height }, { 32, 28, 1 } });
bool hasFence = TrackPaintUtilHasFence(EDGE_NE, position, trackElement, ride, session.CurrentRotation);