]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/view.qc
Move setting of the slowmo cvar out of the physics function (physics are called multi...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / view.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);