mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 08:14:38 +01:00
Move cheats to struct in GameState_t
This commit is contained in:
@@ -743,7 +743,7 @@ static std::optional<TrackSceneryEntry> TrackDesignPlaceSceneryElementGetEntry(c
|
||||
{
|
||||
result.Type = obj->GetObjectType();
|
||||
result.Index = objectMgr.GetLoadedObjectEntryIndex(obj);
|
||||
if (!gCheatsIgnoreResearchStatus)
|
||||
if (!GetGameState().Cheats.IgnoreResearchStatus)
|
||||
{
|
||||
objectUnavailable = !ResearchIsInvented(result.Type, result.Index);
|
||||
}
|
||||
@@ -1975,7 +1975,7 @@ static bool TrackDesignPlacePreview(TrackDesignState& tds, TrackDesign* td6, mon
|
||||
{
|
||||
*flags |= TRACK_DESIGN_FLAG_VEHICLE_UNAVAILABLE;
|
||||
}
|
||||
else if (!RideEntryIsInvented(entry_index) && !gCheatsIgnoreResearchStatus)
|
||||
else if (!RideEntryIsInvented(entry_index) && !GetGameState().Cheats.IgnoreResearchStatus)
|
||||
{
|
||||
*flags |= TRACK_DESIGN_FLAG_VEHICLE_UNAVAILABLE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user