mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 17:42:29 +01:00
Fix spinning tunnels drawing over sloped terrain in front of them (#23818)
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
- Fix: [#23522] Diagonal sloped Steeplechase supports have glitched sprites at the base.
|
- Fix: [#23522] Diagonal sloped Steeplechase supports have glitched sprites at the base.
|
||||||
- Fix: [#23795] Looping Roller Coaster vertical loop supports are drawn incorrectly.
|
- Fix: [#23795] Looping Roller Coaster vertical loop supports are drawn incorrectly.
|
||||||
- Fix: [#23809] Trains glitch on Bobsleigh Coaster small helixes.
|
- Fix: [#23809] Trains glitch on Bobsleigh Coaster small helixes.
|
||||||
|
- Fix: [#23818] Spinning tunnels can draw over sloped terrain in front of them.
|
||||||
|
|
||||||
0.4.19.1 (2025-02-03)
|
0.4.19.1 (2025-02-03)
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -1749,11 +1749,11 @@ void TrackPaintUtilSpinningTunnelPaint(PaintSession& session, int8_t thickness,
|
|||||||
imageId = colourFlags.WithIndex(trackSpritesGhostTrainSpinningTunnel[direction & 1][1][frame]);
|
imageId = colourFlags.WithIndex(trackSpritesGhostTrainSpinningTunnel[direction & 1][1][frame]);
|
||||||
if (direction == 0 || direction == 2)
|
if (direction == 0 || direction == 2)
|
||||||
{
|
{
|
||||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 4, 28, height }, { 26, 1, 23 } });
|
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 2, 28, height }, { 28, 1, 23 } });
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 28, 4, height }, { 1, 26, 23 } });
|
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 28, 2, height }, { 1, 28, 23 } });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user