From: Rudolf Polzer Date: Fri, 27 May 2011 20:22:43 +0000 (+0200) Subject: properly restore the chasecam view also for R_SetView3fv() usage X-Git-Tag: xonotic-v0.5.0~215^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6d05e529f6df9af243ffd2a9cc20f525ada7d754;p=xonotic%2Fxonotic-data.pk3dir.git properly restore the chasecam view also for R_SetView3fv() usage --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index 6c6ab2aaa..20bebc764 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -464,8 +464,8 @@ void CSQC_UpdateView(float w, float h) } // Render the Scene - view_origin = pmove_org + vo; - view_angles = input_angles; + view_origin = R_SetView3fv(VF_ORIGIN); + view_angles = R_SetView3fv(VF_ANGLES); makevectors(view_angles); view_forward = v_forward; view_right = v_right; @@ -554,6 +554,8 @@ void CSQC_UpdateView(float w, float h) // ALWAYS Clear Current Scene First R_ClearScene(); + R_SetView(VF_ORIGIN, view_origin); + R_SetView(VF_ANGLES, view_angles); // FIXME engine bug? VF_SIZE and VF_MIN are not restored to sensible values by this R_SetView(VF_SIZE, vf_size);