Skip to content

Commit

Permalink
Let cheat mode persist across missions
Browse files Browse the repository at this point in the history
Like it did a few years ago.

This way once you enter debug mode, you can access the debugger without having to toggle cheat mode every mission.
  • Loading branch information
KJeff01 committed Apr 18, 2024
1 parent 83f03f3 commit 8602760
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1904,7 +1904,9 @@ bool stageThreeInitialise()
const DebugInputManager& dbgInputManager = gInputManager.debugManager();
if (dbgInputManager.debugMappingsAllowed())
{
Cheated = true;
triggerEventCheatMode(true);
gInputManager.contexts().set(InputContext::DEBUG_MISC, InputContext::State::ACTIVE);
}

triggerEvent(TRIGGER_GAME_INIT);
Expand Down

0 comments on commit 8602760

Please sign in to comment.