From d385342243c27ed54688301d24b2e64cfda8b623 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Mon, 11 Apr 2011 00:26:34 +0300 Subject: [PATCH] Unset the event chasecam's chase_active in CSQC_Shutdown, as requested by divVerent --- qcsrc/client/Main.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/client/Main.qc b/qcsrc/client/Main.qc index 91ce46479..3e7ef814e 100644 --- a/qcsrc/client/Main.qc +++ b/qcsrc/client/Main.qc @@ -203,6 +203,10 @@ void CSQC_Shutdown(void) if(camera_active) cvar_set("chase_active",ftos(chase_active_backup)); + // unset the event chasecam's chase_active + if(autocvar_chase_active < 0) + cvar_set("chase_active", "0"); + if not(isdemo()) { if not(calledhooks & HOOK_START) -- 2.39.2