forked from rosebudai/OpenRCT2-Web
Fix Hybrid Coaster zero g rolls not blocking all metal supports (#24955)
This commit is contained in:
2 files changed
+15
-76
No files matched your search
@@ -12,6 +12,7 @@
|
||||
- Fix: [#24745] Potential crash when lighting effects are enabled and loading a save or a new scenario.
|
||||
- Fix: [#24915] LIM Launched (original bug), Corkscrew and Twister Roller Coaster inline twists have some incorrect tunnels.
|
||||
- Fix: [#24953] Crash when opening the Scenario Editor, Track Designer or Track Designs Manager.
|
||||
- Fix: [#24955] Hybrid Zero G Rolls do not fully block metal supports.
|
||||
- Fix: [#24958] Android: fix crash when device is offline.
|
||||
- Fix: [#24961] Queues with corner connections set with the tile inspector draw incorrect sprites.
|
||||
|
||||
|
||||
@@ -10319,8 +10319,7 @@ namespace OpenRCT2::HybridRC
|
||||
}
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, supportType.wooden, WoodenSupportSubType::neSw, direction, height, session.SupportColours);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
break;
|
||||
case 1:
|
||||
@@ -10353,14 +10352,7 @@ namespace OpenRCT2::HybridRC
|
||||
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
PaintUtilRotateSegments(
|
||||
EnumsToFlags(
|
||||
PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft,
|
||||
PaintSegment::centre, PaintSegment::topRight),
|
||||
direction),
|
||||
0xFFFF, 0);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, supportType.wooden, WoodenSupportSubType::neSw, direction, height, session.SupportColours);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -10412,14 +10404,7 @@ namespace OpenRCT2::HybridRC
|
||||
}
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, supportType.wooden, WoodenSupportSubType::neSw, direction, height, session.SupportColours);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
PaintUtilRotateSegments(
|
||||
EnumsToFlags(
|
||||
PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft,
|
||||
PaintSegment::centre, PaintSegment::topRight),
|
||||
direction),
|
||||
0xFFFF, 0);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
break;
|
||||
}
|
||||
@@ -10467,8 +10452,7 @@ namespace OpenRCT2::HybridRC
|
||||
}
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, supportType.wooden, WoodenSupportSubType::neSw, direction, height, session.SupportColours);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
break;
|
||||
case 1:
|
||||
@@ -10503,14 +10487,7 @@ namespace OpenRCT2::HybridRC
|
||||
}
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, supportType.wooden, WoodenSupportSubType::neSw, direction, height, session.SupportColours);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
PaintUtilRotateSegments(
|
||||
EnumsToFlags(
|
||||
PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft,
|
||||
PaintSegment::centre, PaintSegment::topRight),
|
||||
direction),
|
||||
0xFFFF, 0);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
case 2:
|
||||
@@ -10560,14 +10537,7 @@ namespace OpenRCT2::HybridRC
|
||||
}
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, supportType.wooden, WoodenSupportSubType::neSw, direction, height, session.SupportColours);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
PaintUtilRotateSegments(
|
||||
EnumsToFlags(
|
||||
PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft,
|
||||
PaintSegment::centre, PaintSegment::topRight),
|
||||
direction),
|
||||
0xFFFF, 0);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
break;
|
||||
}
|
||||
@@ -10635,8 +10605,7 @@ namespace OpenRCT2::HybridRC
|
||||
}
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, supportType.wooden, WoodenSupportSubType::neSw, direction, height, session.SupportColours);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
break;
|
||||
case 1:
|
||||
@@ -10681,8 +10650,7 @@ namespace OpenRCT2::HybridRC
|
||||
}
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, supportType.wooden, WoodenSupportSubType::neSw, direction, height, session.SupportColours);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
break;
|
||||
case 2:
|
||||
@@ -10731,14 +10699,7 @@ namespace OpenRCT2::HybridRC
|
||||
}
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, supportType.wooden, WoodenSupportSubType::neSw, direction, height, session.SupportColours);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
PaintUtilRotateSegments(
|
||||
EnumsToFlags(
|
||||
PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft,
|
||||
PaintSegment::centre, PaintSegment::topRight),
|
||||
direction),
|
||||
0xFFFF, 0);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, supportType.wooden, WoodenSupportSubType::neSw, direction, height, session.SupportColours);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
@@ -10798,14 +10759,7 @@ namespace OpenRCT2::HybridRC
|
||||
}
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, supportType.wooden, WoodenSupportSubType::neSw, direction, height, session.SupportColours);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
PaintUtilRotateSegments(
|
||||
EnumsToFlags(
|
||||
PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft,
|
||||
PaintSegment::centre, PaintSegment::topRight),
|
||||
direction),
|
||||
0xFFFF, 0);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
break;
|
||||
}
|
||||
@@ -10859,8 +10813,7 @@ namespace OpenRCT2::HybridRC
|
||||
}
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, supportType.wooden, WoodenSupportSubType::neSw, direction, height, session.SupportColours);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
break;
|
||||
case 1:
|
||||
@@ -10905,8 +10858,7 @@ namespace OpenRCT2::HybridRC
|
||||
}
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, supportType.wooden, WoodenSupportSubType::neSw, direction, height, session.SupportColours);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
break;
|
||||
case 2:
|
||||
@@ -10956,14 +10908,7 @@ namespace OpenRCT2::HybridRC
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, supportType.wooden, WoodenSupportSubType::neSw, direction, height, session.SupportColours);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
PaintUtilRotateSegments(
|
||||
EnumsToFlags(
|
||||
PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight,
|
||||
PaintSegment::bottomLeft, PaintSegment::bottomRight),
|
||||
direction),
|
||||
0xFFFF, 0);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
break;
|
||||
case 3:
|
||||
@@ -11021,14 +10966,7 @@ namespace OpenRCT2::HybridRC
|
||||
}
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, supportType.wooden, WoodenSupportSubType::neSw, direction, height, session.SupportColours);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
PaintUtilRotateSegments(
|
||||
EnumsToFlags(
|
||||
PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight,
|
||||
PaintSegment::bottomLeft, PaintSegment::bottomRight),
|
||||
direction),
|
||||
0xFFFF, 0);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user