]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Unset the event chasecam's chase_active in CSQC_Shutdown, as requested by divVerent
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 10 Apr 2011 21:26:34 +0000 (00:26 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 10 Apr 2011 21:26:34 +0000 (00:26 +0300)
qcsrc/client/Main.qc

index 91ce464793bcbc0f33879a90222c2934165fdb3a..3e7ef814e800ccf0b9d1e43d5626ab19ebab23df 100644 (file)
@@ -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)