1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Fix #21908: Ride mode warnings when hovering track designs

This commit is contained in:
Michael Steenbeek
2025-03-31 23:22:22 +02:00
committed by GitHub
parent 9a3e1d1f0d
commit 50beb138c0
2 changed files with 7 additions and 1 deletions

View File

@@ -17,6 +17,7 @@
- Fix: [#18169] CJK, Arabic and Vietnamese display all text as ??? on Android.
- Fix: [#18309] Flying and Multi Dimension trains glitch when changing between inverted and uninverted track when uncap fps is on.
- Fix: [#19506] Queue paths can be placed on level crossings by replacing an existing regular path.
- Fix: [#21908] Ride mode warnings when hovering track designs.
- Fix: [#23443] New GOG version of RCT2 is not extracted correctly.
- Fix: [#23484] Stray coloured pixels on castle-themed stations and Roman-themed entrances/exits (original bug).
- Fix: [#23486] Object selection minimum requirements can be bypassed with close window hotkey.

View File

@@ -12,6 +12,7 @@
#include "../Context.h"
#include "../Diagnostic.h"
#include "../GameState.h"
#include "../config/Config.h"
#include "../management/Finance.h"
#include "../management/Research.h"
#include "../object/ObjectManager.h"
@@ -238,7 +239,11 @@ GameActions::Result TrackDesignAction::Execute() const
auto numCircuits = std::max<uint8_t>(1, _td.operation.numCircuits);
SetOperatingSettingNested(ride->id, RideSetSetting::NumCircuits, numCircuits, flags);
ride->setToDefaultInspectionInterval();
uint8_t defaultInspectionInterval = Config::Get().general.DefaultInspectionInterval;
if (defaultInspectionInterval <= RIDE_INSPECTION_NEVER)
SetOperatingSettingNested(ride->id, RideSetSetting::InspectionInterval, defaultInspectionInterval, flags);
ride->lifecycleFlags |= RIDE_LIFECYCLE_NOT_CUSTOM_DESIGN;
ride->vehicleColourSettings = _td.appearance.vehicleColourSettings;