From: drjaska Date: Sat, 1 Apr 2023 00:29:00 +0000 (+0300) Subject: move defi check first to micro-optimize X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b6cb89e1397f4357e2c358c87812f96796450735;p=xonotic%2Fxonotic-data.pk3dir.git move defi check first to micro-optimize --- 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;