From f89561530c2390a00557515a96082197e16e76cc Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 19 Nov 2011 13:48:07 +0100 Subject: [PATCH] support the WIP1 variant --- qcsrc/csqcmodel/cl_player.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcsrc/csqcmodel/cl_player.qc b/qcsrc/csqcmodel/cl_player.qc index 8679502ec..add59971c 100644 --- a/qcsrc/csqcmodel/cl_player.qc +++ b/qcsrc/csqcmodel/cl_player.qc @@ -127,7 +127,7 @@ float CSQCPlayer_IsLocalPlayer() return (self == csqcplayer); } -void(entity e) V_CalcRefdef = #640; // DP_CSQC_V_CALCREFDEF +void(entity e, float fl) V_CalcRefdef = #640; // DP_CSQC_V_CALCREFDEF void CSQCPlayer_SetCamera() { @@ -197,7 +197,7 @@ void CSQCPlayer_SetCamera() // FIXME support svc_setview? - if(checkextension("DP_CSQC_V_CALCREFDEF")) + if(checkextension("DP_CSQC_V_CALCREFDEF") || checkextension("DP_CSQC_V_CALCREFDEF_WIP1")) { var float refdefflags = 0; @@ -210,7 +210,7 @@ void CSQCPlayer_SetCamera() if(input_buttons & 4) refdefflags |= REFDEFFLAG_JUMPING; - V_CalcRefdef(self); + V_CalcRefdef(self, refdefflags); } else R_SetView3fv(VF_ORIGIN, self.origin + self.view_ofs); -- 2.39.2