summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKiloku <mateus.sateles@protonmail.com>2025-02-02 23:23:42 -0300
committerLywx <kiritodev01@gmail.com>2025-02-10 18:06:47 -0600
commitdd9c8107143650a311e389d85c2f9824c9caca61 (patch)
tree2243526ec615ca088e7a35c3cc9caef7e48c1256
parente3378709e46b1d849550072296ed0bbea0ffa536 (diff)
Disable debug pause on init
-rw-r--r--src/port/mods/PortEnhancements.c3
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() {