]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Move setting of the slowmo cvar out of the physics function (physics are called multi...
authorMario <mario@smbclan.net>
Sat, 30 Apr 2016 08:47:57 +0000 (18:47 +1000)
committerMario <mario@smbclan.net>
Sat, 30 Apr 2016 08:47:57 +0000 (18:47 +1000)
qcsrc/client/view.qc
qcsrc/common/physics/player.qc

index 4537e56a444becda3d5c38f1629aa7a17e5b8440..68711ef3b1ec29b0eebd0719b5ff5cd8702f8138 100644 (file)
@@ -1392,6 +1392,10 @@ void CSQC_UpdateView(float w, float h)
        else
                view_quality = 1;
 
+       // this needs to be updated manually now due to the destruction of engine physics stats
+       if(autocvar_slowmo != STAT(MOVEVARS_TIMESCALE))
+               cvar_set("slowmo", ftos(STAT(MOVEVARS_TIMESCALE)));
+
        button_attack2 = PHYS_INPUT_BUTTON_ATCK2(this);
        button_zoom = PHYS_INPUT_BUTTON_ZOOM(this);
 
index 7f20bfe9a0e29d81ba7f61ac8385452b1749837b..302104351dd19560b004a7e5e14dfb39f6f558c5 100644 (file)
@@ -1332,9 +1332,6 @@ void PM_Main(entity this)
        if (this.PlayerPhysplug)
                if (this.PlayerPhysplug(this))
                        return;
-#elif defined(CSQC)
-       if(autocvar_slowmo != STAT(MOVEVARS_TIMESCALE))
-               cvar_set("slowmo", ftos(STAT(MOVEVARS_TIMESCALE)));
 #endif
 
 #ifdef SVQC