]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/client/Main.qc
Event chasecam from Xonotic (original code by me). Causes camera to do into third...
[voretournament/voretournament.git] / data / qcsrc / client / Main.qc
index e01f560fe805dc7b32badaa04a320f30d8f3c63d..3f9c72927e22bb6636cf010b59f025ffca3a8510 100644 (file)
@@ -208,6 +208,10 @@ void CSQC_Shutdown(void)
        if(camera_active)\r
                cvar_set("chase_active",ftos(chase_active_backup));\r
 \r
+       // unset the event chasecam's chase_active\r
+       if(cvar("chase_active") < 0)\r
+               cvar_set("chase_active", "0");\r
+\r
        if not(isdemo())\r
        {\r
                if not(calledhooks & HOOK_START)\r