Fix gentle banked Wooden RollerCoaster track glitching as train passes

This commit is contained in:
mix authored and GitHub committed 2025-03-11 18:02:17 +00:00
1 parent 2e9ba86663
commit 7ea47267dd
32 files changed
+249 -3

No files matched your search

+1
View File
@@ -8,6 +8,7 @@
- Fix: [#10582] Low clearance tunnels below water are drawn incorrectly (original bug).
- Fix: [#23743] Parks with guest goals over 32767 do not appear in the scenario list.
- Fix: [#23844] Sound effects keep playing when loading another save.
- Fix: [#23892] Gentle banked Wooden Roller Coaster track glitches as trains pass (original bug).
- Fix: [#23897] Reverse Freefall Coaster slope up to vertical track piece does not draw a vertical tunnel.
- Fix: [#23939] Incorrect assertion when trying to load heightmap.
- Fix: [#23941] Underflow in “Repay loan and achieve a certain park value” objective when using Japanese.
+140
View File
@@ -9520,6 +9520,146 @@
"y": -2,
"palette": "keep"
},
{
"path": "track/wooden/left_bank_front_swne.png",
"x": -2,
"y": -7
},
{
"path": "track/wooden/left_bank_front_nwse.png",
"x": -31,
"y": -7
},
{
"path": "track/wooden/left_bank_rails_front_swne.png",
"x": -3,
"y": -7
},
{
"path": "track/wooden/left_bank_rails_front_nwse.png",
"x": -31,
"y": -7
},
{
"path": "track/wooden/24225_front.png",
"x": 9,
"y": -15
},
{
"path": "track/wooden/24232_front.png",
"x": -30,
"y": -15
},
{
"path": "track/wooden/24249_front.png",
"x": -4,
"y": -24
},
{
"path": "track/wooden/24256_front.png",
"x": -30,
"y": -24
},
{
"path": "track/wooden/24261_front.png",
"x": 9,
"y": -23
},
{
"path": "track/wooden/24262_front.png",
"x": -32,
"y": -7
},
{
"path": "track/wooden/24267_front.png",
"x": -3,
"y": -8
},
{
"path": "track/wooden/24268_front.png",
"x": -30,
"y": -23
},
{
"path": "track/wooden/24277_front.png",
"x": -2,
"y": -16
},
{
"path": "track/wooden/24284_front.png",
"x": -32,
"y": -16
},
{
"path": "track/wooden/24285_front.png",
"x": -2,
"y": -16
},
{
"path": "track/wooden/24292_front.png",
"x": -31,
"y": -16
},
{
"path": "track/wooden/25091_front.png",
"x": 0,
"y": -15
},
{
"path": "track/wooden/25098_front.png",
"x": -30,
"y": -15
},
{
"path": "track/wooden/25115_front.png",
"x": -4,
"y": -24
},
{
"path": "track/wooden/25122_front.png",
"x": -30,
"y": -24
},
{
"path": "track/wooden/25127_front.png",
"x": -1,
"y": -23
},
{
"path": "track/wooden/25128_front.png",
"x": -32,
"y": -7
},
{
"path": "track/wooden/25133_front.png",
"x": -4,
"y": -8
},
{
"path": "track/wooden/25134_front.png",
"x": -30,
"y": -23
},
{
"path": "track/wooden/25143_front.png",
"x": -2,
"y": -16
},
{
"path": "track/wooden/25150_front.png",
"x": -32,
"y": -16
},
{
"path": "track/wooden/25151_front.png",
"x": -2,
"y": -16
},
{
"path": "track/wooden/25158_front.png",
"x": -31,
"y": -16
},
{
"path": "track/wooden/booster_1.png",
"x": -34,
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 941 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

+32 -1
View File
@@ -1346,7 +1346,38 @@ enum : ImageIndex
SPR_G2_MINIATURE_RAILWAY_END,
SPR_G2_WOODEN_RC_BEGIN = SPR_G2_MINIATURE_RAILWAY_END,
SPR_G2_WOODEN_RC_BOOSTER_SW_NE = SPR_G2_WOODEN_RC_BEGIN,
SPR_G2_WOODEN_RC_LEFT_BANK_FRONT_SW_NE = SPR_G2_WOODEN_RC_BEGIN,
SPR_G2_WOODEN_RC_LEFT_BANK_FRONT_NW_SE,
SPR_G2_WOODEN_RC_LEFT_BANK_RAILS_FRONT_SW_NE,
SPR_G2_WOODEN_RC_LEFT_BANK_RAILS_FRONT_NW_SE,
SPR_G2_WOODEN_RC_24225_FRONT,
SPR_G2_WOODEN_RC_24232_FRONT,
SPR_G2_WOODEN_RC_24249_FRONT,
SPR_G2_WOODEN_RC_24256_FRONT,
SPR_G2_WOODEN_RC_24261_FRONT,
SPR_G2_WOODEN_RC_24262_FRONT,
SPR_G2_WOODEN_RC_24267_FRONT,
SPR_G2_WOODEN_RC_24268_FRONT,
SPR_G2_WOODEN_RC_24277_FRONT,
SPR_G2_WOODEN_RC_24284_FRONT,
SPR_G2_WOODEN_RC_24285_FRONT,
SPR_G2_WOODEN_RC_24292_FRONT,
SPR_G2_WOODEN_RC_25091_FRONT,
SPR_G2_WOODEN_RC_25098_FRONT,
SPR_G2_WOODEN_RC_25115_FRONT,
SPR_G2_WOODEN_RC_25122_FRONT,
SPR_G2_WOODEN_RC_25127_FRONT,
SPR_G2_WOODEN_RC_25128_FRONT,
SPR_G2_WOODEN_RC_25133_FRONT,
SPR_G2_WOODEN_RC_25134_FRONT,
SPR_G2_WOODEN_RC_25143_FRONT,
SPR_G2_WOODEN_RC_25150_FRONT,
SPR_G2_WOODEN_RC_25151_FRONT,
SPR_G2_WOODEN_RC_25158_FRONT,
SPR_G2_WOODEN_RC_BOOSTER_SW_NE,
SPR_G2_WOODEN_RC_BOOSTER_NW_SE,
SPR_G2_WOODEN_RC_DIAG_BRAKES,
@@ -927,8 +927,10 @@ static constexpr std::array<WoodenTrackSection, kNumOrthogonalDirections> kFlatT
} };
static constexpr std::array<WoodenTrackSection, kNumOrthogonalDirections> kLeftBankImages = { {
{ SPR_WOODEN_RC_LEFT_BANK_SW_NE, SPR_WOODEN_RC_LEFT_BANK_RAILS_SW_NE },
{ SPR_WOODEN_RC_LEFT_BANK_NW_SE, SPR_WOODEN_RC_LEFT_BANK_RAILS_NW_SE },
{ SPR_WOODEN_RC_LEFT_BANK_SW_NE, SPR_WOODEN_RC_LEFT_BANK_RAILS_SW_NE, SPR_G2_WOODEN_RC_LEFT_BANK_FRONT_SW_NE,
SPR_G2_WOODEN_RC_LEFT_BANK_RAILS_FRONT_SW_NE },
{ SPR_WOODEN_RC_LEFT_BANK_NW_SE, SPR_WOODEN_RC_LEFT_BANK_RAILS_NW_SE, SPR_G2_WOODEN_RC_LEFT_BANK_FRONT_NW_SE,
SPR_G2_WOODEN_RC_LEFT_BANK_RAILS_FRONT_NW_SE },
{ SPR_WOODEN_RC_LEFT_BANK_NE_SW, SPR_WOODEN_RC_LEFT_BANK_RAILS_NE_SW },
{ SPR_WOODEN_RC_LEFT_BANK_SE_NW, SPR_WOODEN_RC_LEFT_BANK_RAILS_SE_NW },
} };
@@ -5800,6 +5802,12 @@ static void WoodenRCTrack25DegUpLeftBanked(
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(25115), { 0, 0, height },
{ { 0, 3, height }, { 32, 25, 2 } });
PaintAddImageAsParentRotated(
session, direction, WoodenRCGetTrackColour<isClassic>(session).WithIndex(SPR_G2_WOODEN_RC_24249_FRONT),
{ 0, 0, height }, { { 4, 26, height + 5 }, { 24, 1, 9 } });
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(SPR_G2_WOODEN_RC_25115_FRONT), { 0, 0, height },
{ { 4, 26, height + 5 }, { 24, 1, 9 } });
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::Up25Deg);
@@ -5922,6 +5930,12 @@ static void WoodenRCTrack25DegUpRightBanked(
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(25122), { 0, 0, height },
{ { 0, 3, height }, { 32, 25, 2 } });
PaintAddImageAsParentRotated(
session, direction, WoodenRCGetTrackColour<isClassic>(session).WithIndex(SPR_G2_WOODEN_RC_24256_FRONT),
{ 0, 0, height }, { { 0, 26, height + 5 }, { 32, 1, 9 } });
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(SPR_G2_WOODEN_RC_25122_FRONT), { 0, 0, height },
{ { 0, 26, height + 5 }, { 32, 1, 9 } });
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::Up25Deg);
@@ -11262,6 +11276,12 @@ static void WoodenRCTrack25DegUpToLeftBanked25DegUp(
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(25127), { 0, 0, height },
{ { 0, 3, height }, { 32, 25, 2 } });
PaintAddImageAsParentRotated(
session, direction, WoodenRCGetTrackColour<isClassic>(session).WithIndex(SPR_G2_WOODEN_RC_24261_FRONT),
{ 0, 0, height }, { { 0, 26, height + 5 }, { 32, 1, 9 } });
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(SPR_G2_WOODEN_RC_25127_FRONT), { 0, 0, height },
{ { 0, 26, height + 5 }, { 32, 1, 9 } });
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::Up25Deg);
@@ -11273,6 +11293,12 @@ static void WoodenRCTrack25DegUpToLeftBanked25DegUp(
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(25128), { 0, 0, height },
{ { 0, 3, height }, { 32, 25, 2 } });
PaintAddImageAsParentRotated(
session, direction, WoodenRCGetTrackColour<isClassic>(session).WithIndex(SPR_G2_WOODEN_RC_24262_FRONT),
{ 0, 0, height }, { { 0, 26, height + 5 }, { 32, 1, 9 } });
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(SPR_G2_WOODEN_RC_25128_FRONT), { 0, 0, height },
{ { 0, 26, height + 5 }, { 32, 1, 9 } });
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::Up25Deg);
@@ -11349,6 +11375,12 @@ static void WoodenRCTrack25DegUpToRightBanked25DegUp(
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(25133), { 0, 0, height },
{ { 0, 3, height }, { 32, 25, 2 } });
PaintAddImageAsParentRotated(
session, direction, WoodenRCGetTrackColour<isClassic>(session).WithIndex(SPR_G2_WOODEN_RC_24267_FRONT),
{ 0, 0, height }, { { 0, 26, height + 5 }, { 32, 1, 9 } });
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(SPR_G2_WOODEN_RC_25133_FRONT), { 0, 0, height },
{ { 0, 26, height + 5 }, { 32, 1, 9 } });
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::Up25Deg);
@@ -11360,6 +11392,12 @@ static void WoodenRCTrack25DegUpToRightBanked25DegUp(
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(25134), { 0, 0, height },
{ { 0, 3, height }, { 32, 25, 2 } });
PaintAddImageAsParentRotated(
session, direction, WoodenRCGetTrackColour<isClassic>(session).WithIndex(SPR_G2_WOODEN_RC_24268_FRONT),
{ 0, 0, height }, { { 0, 26, height + 5 }, { 32, 1, 9 } });
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(SPR_G2_WOODEN_RC_25134_FRONT), { 0, 0, height },
{ { 0, 26, height + 5 }, { 32, 1, 9 } });
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::Up25Deg);
@@ -11562,6 +11600,12 @@ static void WoodenRCTrackLeftBankedFlatToLeftBanked25DegUp(
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(25143), { 0, 0, height },
{ { 0, 3, height }, { 32, 25, 2 } });
PaintAddImageAsParentRotated(
session, direction, WoodenRCGetTrackColour<isClassic>(session).WithIndex(SPR_G2_WOODEN_RC_24277_FRONT),
{ 0, 0, height }, { { 0, 26, height + 5 }, { 32, 1, 9 } });
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(SPR_G2_WOODEN_RC_25143_FRONT), { 0, 0, height },
{ { 0, 26, height + 5 }, { 32, 1, 9 } });
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::FlatToUp25Deg);
@@ -11684,6 +11728,12 @@ static void WoodenRCTrackRightBankedFlatToRightBanked25DegUp(
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(25150), { 0, 0, height },
{ { 0, 3, height }, { 32, 25, 2 } });
PaintAddImageAsParentRotated(
session, direction, WoodenRCGetTrackColour<isClassic>(session).WithIndex(SPR_G2_WOODEN_RC_24284_FRONT),
{ 0, 0, height }, { { 0, 26, height + 5 }, { 32, 1, 9 } });
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(SPR_G2_WOODEN_RC_25150_FRONT), { 0, 0, height },
{ { 0, 26, height + 5 }, { 32, 1, 9 } });
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::FlatToUp25Deg);
@@ -11716,6 +11766,12 @@ static void WoodenRCTrackLeftBanked25DegUpToLeftBankedFlat(
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(25151), { 0, 0, height },
{ { 0, 3, height }, { 32, 25, 2 } });
PaintAddImageAsParentRotated(
session, direction, WoodenRCGetTrackColour<isClassic>(session).WithIndex(SPR_G2_WOODEN_RC_24285_FRONT),
{ 0, 0, height }, { { 0, 26, height + 5 }, { 32, 1, 9 } });
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(SPR_G2_WOODEN_RC_25151_FRONT), { 0, 0, height },
{ { 0, 26, height + 5 }, { 32, 1, 9 } });
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::Up25DegToFlat);
@@ -11838,6 +11894,12 @@ static void WoodenRCTrackRightBanked25DegUpToRightBankedFlat(
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(25158), { 0, 0, height },
{ { 0, 3, height }, { 32, 25, 2 } });
PaintAddImageAsParentRotated(
session, direction, WoodenRCGetTrackColour<isClassic>(session).WithIndex(SPR_G2_WOODEN_RC_24292_FRONT),
{ 0, 0, height }, { { 0, 26, height + 5 }, { 32, 1, 9 } });
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(SPR_G2_WOODEN_RC_25158_FRONT), { 0, 0, height },
{ { 0, 26, height + 5 }, { 32, 1, 9 } });
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::Up25DegToFlat);
@@ -11910,6 +11972,12 @@ static void WoodenRCTrackFlatToLeftBanked25DegUp(
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(25091), { 0, 0, height },
{ { 0, 3, height }, { 32, 25, 2 } });
PaintAddImageAsParentRotated(
session, direction, WoodenRCGetTrackColour<isClassic>(session).WithIndex(SPR_G2_WOODEN_RC_24225_FRONT),
{ 0, 0, height }, { { 0, 26, height + 5 }, { 32, 1, 9 } });
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(SPR_G2_WOODEN_RC_25091_FRONT), { 0, 0, height },
{ { 0, 26, height + 5 }, { 32, 1, 9 } });
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::FlatToUp25Deg);
@@ -12032,6 +12100,12 @@ static void WoodenRCTrackFlatToRightBanked25DegUp(
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(25098), { 0, 0, height },
{ { 0, 3, height }, { 32, 25, 2 } });
PaintAddImageAsParentRotated(
session, direction, WoodenRCGetTrackColour<isClassic>(session).WithIndex(SPR_G2_WOODEN_RC_24232_FRONT),
{ 0, 0, height }, { { 0, 26, height + 5 }, { 32, 1, 9 } });
PaintAddImageAsChildRotated(
session, direction, WoodenRCGetRailsColour(session).WithIndex(SPR_G2_WOODEN_RC_25098_FRONT), { 0, 0, height },
{ { 0, 26, height + 5 }, { 32, 1, 9 } });
WoodenASupportsPaintSetupRotated(
session, supportType.wooden, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
WoodenSupportTransitionType::FlatToUp25Deg);