From dd9c8107143650a311e389d85c2f9824c9caca61 Mon Sep 17 00:00:00 2001 From: Kiloku Date: Sun, 2 Feb 2025 23:23:42 -0300 Subject: [PATCH] Disable debug pause on init --- src/port/mods/PortEnhancements.c | 3 +++ 1 file changed, 3 insertions(+) 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() {