From: Rudolf Polzer Date: Sat, 19 Nov 2011 12:48:07 +0000 (+0100) Subject: support the WIP1 variant X-Git-Tag: xonotic-v0.6.0~74^2~100^2~44 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f89561530c2390a00557515a96082197e16e76cc;p=xonotic%2Fxonotic-data.pk3dir.git support the WIP1 variant --- 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);