From b6cb89e1397f4357e2c358c87812f96796450735 Mon Sep 17 00:00:00 2001 From: drjaska Date: Sat, 1 Apr 2023 03:29:00 +0300 Subject: [PATCH] move defi check first to micro-optimize --- qcsrc/server/damage.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/damage.qc b/qcsrc/server/damage.qc index cded517fe..43573ad5d 100644 --- a/qcsrc/server/damage.qc +++ b/qcsrc/server/damage.qc @@ -714,11 +714,11 @@ void Damage(entity targ, entity inflictor, entity attacker, float damage, int de // It is only intended to be used with 250 base force for devastator which matches Q3 if our // target's damageforcescale is also 2 if(force) + if(q3compat & Q3COMPAT_DEFI) if(autocvar_g_balance_damagepush_speedfactor == 0) if(attacker.(weaponentity).m_weapon == WEP_DEVASTATOR) if(autocvar_g_balance_devastator_force == 250) if(targ.damageforcescale == 2) - if(q3compat & Q3COMPAT_DEFI) if((cvar_string("g_mod_physics") == "CPMA") || (cvar_string("g_mod_physics") == "XDF")) { force.x *= 1.2; -- 2.39.2