mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 21:43:06 +01:00
Rename cheat variables to match new code style
This commit is contained in:
@@ -670,7 +670,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
|
||||
uint32_t numPathTypes = 0;
|
||||
// If the game is in sandbox mode, also show paths that are normally restricted to the scenario editor
|
||||
bool showEditorPaths = ((gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) || GetGameState().Cheats.SandboxMode);
|
||||
bool showEditorPaths = ((gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) || GetGameState().Cheats.sandboxMode);
|
||||
|
||||
_dropdownEntries.clear();
|
||||
std::optional<size_t> defaultIndex;
|
||||
@@ -688,14 +688,14 @@ namespace OpenRCT2::Ui::Windows
|
||||
}
|
||||
// If regular paths can be used as queue, only hide the path if we’re _not_ looking at a queue,
|
||||
// but the path surface is one.
|
||||
if (GetGameState().Cheats.AllowRegularPathAsQueue && !showQueues
|
||||
if (GetGameState().Cheats.allowRegularPathAsQueue && !showQueues
|
||||
&& ((pathType->Flags & FOOTPATH_ENTRY_FLAG_IS_QUEUE) != 0))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
// If the cheat is disabled, hide queues from the regular path view and vice versa.
|
||||
else if (
|
||||
!GetGameState().Cheats.AllowRegularPathAsQueue
|
||||
!GetGameState().Cheats.allowRegularPathAsQueue
|
||||
&& showQueues != ((pathType->Flags & FOOTPATH_ENTRY_FLAG_IS_QUEUE) != 0))
|
||||
{
|
||||
continue;
|
||||
@@ -821,7 +821,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
auto info = GetMapCoordinatesFromPos(screenCoords, interactionFlags);
|
||||
if (info.interactionType != ViewportInteractionItem::None)
|
||||
{
|
||||
const bool allowInvalidHeights = GetGameState().Cheats.AllowTrackPlaceInvalidHeights;
|
||||
const bool allowInvalidHeights = GetGameState().Cheats.allowTrackPlaceInvalidHeights;
|
||||
const auto heightStep = kCoordsZStep * (!allowInvalidHeights ? 2 : 1);
|
||||
|
||||
_footpathPlaceCtrlZ = Floor2(info.Element->GetBaseZ(), heightStep);
|
||||
@@ -854,7 +854,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
_footpathPlaceShiftZ = mainWnd->viewport->zoom.ApplyTo(_footpathPlaceShiftZ);
|
||||
}
|
||||
|
||||
const bool allowInvalidHeights = GetGameState().Cheats.AllowTrackPlaceInvalidHeights;
|
||||
const bool allowInvalidHeights = GetGameState().Cheats.allowTrackPlaceInvalidHeights;
|
||||
const auto heightStep = kCoordsZStep * (!allowInvalidHeights ? 2 : 1);
|
||||
_footpathPlaceShiftZ = Floor2(_footpathPlaceShiftZ, heightStep);
|
||||
|
||||
@@ -1589,7 +1589,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
void KeyboardShortcutDemolishCurrent()
|
||||
{
|
||||
if (IsWidgetDisabled(WIDX_REMOVE) || widgets[WIDX_REMOVE].type == WindowWidgetType::Empty
|
||||
|| (!GetGameState().Cheats.BuildInPauseMode && GameIsPaused()))
|
||||
|| (!GetGameState().Cheats.buildInPauseMode && GameIsPaused()))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user