1
0
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:
RedMarcher
2024-11-27 19:30:19 +00:00
committed by Gymnasiast
parent 7d554b5790
commit c24e47dea1
74 changed files with 450 additions and 450 deletions

View File

@@ -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 were _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;
}