From: Mircea Kitsune Date: Sun, 10 Apr 2011 21:26:34 +0000 (+0300) Subject: Unset the event chasecam's chase_active in CSQC_Shutdown, as requested by divVerent X-Git-Tag: xonotic-v0.5.0~268^2^2~6^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d385342243c27ed54688301d24b2e64cfda8b623;p=xonotic%2Fxonotic-data.pk3dir.git Unset the event chasecam's chase_active in CSQC_Shutdown, as requested by divVerent --- 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)