diff options
| author | Kiloku <mateus.sateles@protonmail.com> | 2025-02-02 23:23:42 -0300 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2025-02-10 18:06:47 -0600 |
| commit | dd9c8107143650a311e389d85c2f9824c9caca61 (patch) | |
| tree | 2243526ec615ca088e7a35c3cc9caef7e48c1256 | |
| parent | e3378709e46b1d849550072296ed0bbea0ffa536 (diff) | |
Disable debug pause on init
| -rw-r--r-- | src/port/mods/PortEnhancements.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/port/mods/PortEnhancements.c b/src/port/mods/PortEnhancements.c index 3c156bec..bae0e695 100644 --- a/src/port/mods/PortEnhancements.c +++ b/src/port/mods/PortEnhancements.c @@ -331,6 +331,9 @@ void PortEnhancements_Init() { REGISTER_LISTENER(PlayerActionBrakeEvent, OnPlayerBrake, EVENT_PRIORITY_NORMAL); REGISTER_LISTENER(PlayerActionPostShootEvent, OnPlayerShootPost, EVENT_PRIORITY_NORMAL); REGISTER_LISTENER(PlayerActionPreShootChargedEvent, OnPlayerShootChargedPre, EVENT_PRIORITY_NORMAL); + + //If we close the game while debug pause is active, we want it to be deactivated when we run again. + CVarSetInteger("gDebugPause", 0); } void PortEnhancements_Register() { |
