Remove red for negative Gs (#27100)

This commit is contained in:
MarcelVos96 authored and GitHub committed 2026-09-12 16:42:27 +00:00
1 parent 6ab43acb35
commit 1cc42279dc
2 files changed
+3 -7

No files matched your search

+1
View File
@@ -2,6 +2,7 @@
------------------------------------------------------------------------
- Improved: [#21400] The selector for setting staff patrol areas is now drawn on the water as well as on the surface under water.
- Improved: [#26947] Rain is now drawn next to the bottom info panels (in RCT2 style).
- Change: [#27100] Negative G-forces no longer turn red in the stats window and graph when below -2.50.
- Fix: [#1514] Wrong capitalisation for strings in the Guest List window.
- Fix: [#21320] RCT1 allows more cars per train on some rides than OpenRCT2.
- Fix: [#24457] Yellow is always rendered as third remap in Ride window.
+2 -7
View File
@@ -625,7 +625,6 @@ namespace OpenRCT2::Ui::Windows
};
static_assert(std::size(GraphsYAxisDetails) == 4);
static constexpr auto kRideGForcesRedNegVertical = -MakeFixed16_2dp(2, 50);
static constexpr auto kRideGForcesRedLateral = MakeFixed16_2dp(2, 80);
// Used for sorting the ride type cheat dropdown.
@@ -6094,16 +6093,13 @@ namespace OpenRCT2::Ui::Windows
{
// Max. positive vertical G's
stringId = STR_MAX_POSITIVE_VERTICAL_G;
ft = Formatter();
ft.Add<fixed16_2dp>(ride->maxPositiveVerticalG);
drawText(rt, screenCoords, stringId, ft);
screenCoords.y += kListRowHeight;
// Max. negative vertical G's
stringId = ride->maxNegativeVerticalG <= kRideGForcesRedNegVertical
? STR_MAX_NEGATIVE_VERTICAL_G_RED
: STR_MAX_NEGATIVE_VERTICAL_G;
stringId = STR_MAX_NEGATIVE_VERTICAL_G;
ft = Formatter();
ft.Add<int32_t>(ride->maxNegativeVerticalG);
drawText(rt, screenCoords, stringId, ft);
@@ -6464,7 +6460,6 @@ namespace OpenRCT2::Ui::Windows
case GRAPH_VERTICAL:
firstPoint = measurement->vertical[x] + VerticalGraphHeightOffset;
secondPoint = measurement->vertical[x + 1] + VerticalGraphHeightOffset;
intensityThresholdNegative = (kRideGForcesRedNegVertical / 8) + VerticalGraphHeightOffset;
break;
case GRAPH_LATERAL:
firstPoint = measurement->lateral[x] + LateralGraphHeightOffset;
@@ -6501,7 +6496,7 @@ namespace OpenRCT2::Ui::Windows
previousMeasurement ? PaletteIndex::pi17 : PaletteIndex::pi21);
// Draw red over extreme values (if supported by graph type).
if (listType == GRAPH_VERTICAL || listType == GRAPH_LATERAL)
if (listType == GRAPH_LATERAL)
{
const auto redLineColour = previousMeasurement ? PaletteIndex::pi171 : PaletteIndex::pi173;