From: Mario Date: Thu, 2 Jan 2020 13:04:06 +0000 (+1000) Subject: Don't use the IS_DEAD macro in CSQC Player code (not defined in lib) X-Git-Tag: xonotic-v0.8.5~1105^2~53 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d41110d5bc2e5ee4394e3d3af65442891286c584;p=xonotic%2Fxonotic-data.pk3dir.git Don't use the IS_DEAD macro in CSQC Player code (not defined in lib) --- diff --git a/qcsrc/lib/csqcmodel/cl_player.qc b/qcsrc/lib/csqcmodel/cl_player.qc index 4d41cd316..f49c5f6db 100644 --- a/qcsrc/lib/csqcmodel/cl_player.qc +++ b/qcsrc/lib/csqcmodel/cl_player.qc @@ -240,7 +240,7 @@ bool autocvar_v_deathtilt; float autocvar_v_deathtiltangle; void CSQCPlayer_ApplyDeathTilt(entity this) { - if(!IS_DEAD(this) || !autocvar_v_deathtilt) + if(!this.csqcmodel_isdead || !autocvar_v_deathtilt) return; view_angles.z = autocvar_v_deathtiltangle; } @@ -279,7 +279,7 @@ float bobfall_speed; float bob2_smooth; vector CSQCPlayer_ApplyBobbing(entity this, vector v) { - if(IS_DEAD(this)) + if(this.csqcmodel_isdead) return v; // bounded XY speed, used by several effects below