X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Fcsqcmodel%2Fcl_player.qc;h=4331f731045ecf21e3dc4fee94c3a9a86589a950;hb=b3126a1e33c04b2e318afc6f745d96a41d1f0623;hp=5521feae190c5a894a6bc5007ef36b362bb55cf6;hpb=d84255f5e78b47d8e70185d66f1eeb9595f9474a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/csqcmodel/cl_player.qc b/qcsrc/lib/csqcmodel/cl_player.qc index 5521feae1..4331f7310 100644 --- a/qcsrc/lib/csqcmodel/cl_player.qc +++ b/qcsrc/lib/csqcmodel/cl_player.qc @@ -554,8 +554,6 @@ void CSQCPlayer_CalcRefdef(entity this) setproperty(VF_ANGLES, view_angles); } -bool autocvar_cl_useenginerefdef = false; - /** Called once per CSQC_UpdateView() */ void CSQCPlayer_SetCamera() { @@ -637,20 +635,7 @@ void CSQCPlayer_SetCamera() InterpolateOrigin_Do(view); view.view_ofs = '0 0 1' * vh; } - if(autocvar_cl_useenginerefdef) - { - int refdefflags = 0; - if (view.csqcmodel_teleported) refdefflags |= REFDEFFLAG_TELEPORTED; - if (input_buttons & BIT(1)) refdefflags |= REFDEFFLAG_JUMPING; - // note: these two only work in WIP2, but are harmless in WIP1 - if (PHYS_HEALTH(NULL) <= 0 && PHYS_HEALTH(NULL) != -666 && PHYS_HEALTH(NULL) != -2342) refdefflags |= REFDEFFLAG_DEAD; - if (intermission) refdefflags |= REFDEFFLAG_INTERMISSION; - V_CalcRefdef(view, refdefflags); // TODO? uses .health stat in the engine when this isn't called here, may be broken! - } - else - { - CSQCPlayer_CalcRefdef(view); - } + CSQCPlayer_CalcRefdef(view); } else {