]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/view.qc
Hide accuracy panel until there is some stats to display, i.e. when you have at least...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / view.qc
index 2538299475c3b43980a56483ca0995470d5fff97..e873f64535bd40ca74bb8126e882c92f7085fe64 100644 (file)
@@ -427,6 +427,10 @@ void Porto_Draw(entity this)
 
                vector pos = view_origin;
                vector dir = view_forward;
+               makevectors(((autocvar_chase_active) ? warpzone_save_view_angles : view_angles));
+               pos += v_right * -wepent.movedir.y
+                       +  v_up * wepent.movedir.z;
+
                if (wepent.angles_held_status)
                {
                        makevectors(wepent.angles_held);
@@ -1568,7 +1572,7 @@ int lasthud;
 float vh_notice_time;
 void CSQC_UpdateView(entity this, float w, float h)
 {
-    TC(int, w); TC(int, h);
+       TC(int, w); TC(int, h);
        entity e;
        float fov;
        float f;