mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 17:42:29 +01:00
Fix #21908: Ride mode warnings when hovering track designs
This commit is contained in:
committed by
GitHub
parent
9a3e1d1f0d
commit
50beb138c0
@@ -17,6 +17,7 @@
|
|||||||
- Fix: [#18169] CJK, Arabic and Vietnamese display all text as ‘???’ on Android.
|
- 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: [#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: [#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: [#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: [#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.
|
- Fix: [#23486] Object selection minimum requirements can be bypassed with close window hotkey.
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
#include "../Context.h"
|
#include "../Context.h"
|
||||||
#include "../Diagnostic.h"
|
#include "../Diagnostic.h"
|
||||||
#include "../GameState.h"
|
#include "../GameState.h"
|
||||||
|
#include "../config/Config.h"
|
||||||
#include "../management/Finance.h"
|
#include "../management/Finance.h"
|
||||||
#include "../management/Research.h"
|
#include "../management/Research.h"
|
||||||
#include "../object/ObjectManager.h"
|
#include "../object/ObjectManager.h"
|
||||||
@@ -238,7 +239,11 @@ GameActions::Result TrackDesignAction::Execute() const
|
|||||||
|
|
||||||
auto numCircuits = std::max<uint8_t>(1, _td.operation.numCircuits);
|
auto numCircuits = std::max<uint8_t>(1, _td.operation.numCircuits);
|
||||||
SetOperatingSettingNested(ride->id, RideSetSetting::NumCircuits, numCircuits, flags);
|
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->lifecycleFlags |= RIDE_LIFECYCLE_NOT_CUSTOM_DESIGN;
|
||||||
ride->vehicleColourSettings = _td.appearance.vehicleColourSettings;
|
ride->vehicleColourSettings = _td.appearance.vehicleColourSettings;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user