From: Mircea Kitsune Date: Sat, 14 Jan 2012 12:14:16 +0000 (+0200) Subject: Remove a check which is now useless X-Git-Tag: xonotic-v0.6.0~110^2^2~15 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=b48fc33b3eb9e81069d56e01f03af5906ba1acb7;p=xonotic%2Fxonotic-data.pk3dir.git Remove a check which is now useless --- diff --git a/qcsrc/client/damage.qc b/qcsrc/client/damage.qc index 1199f5022..a0682eef1 100644 --- a/qcsrc/client/damage.qc +++ b/qcsrc/client/damage.qc @@ -57,7 +57,7 @@ void DamageEffect(vector hitorg, float dmg, float type, float specnum) continue; // skip empty bones // now choose the bone closest to impact origin - if(!nearestbone || vlen(hitorg - gettaginfo(self, tagnum)) <= vlen(hitorg - gettaginfo(self, nearestbone))) + if(vlen(hitorg - gettaginfo(self, tagnum)) <= vlen(hitorg - gettaginfo(self, nearestbone))) nearestbone = tagnum; } gettaginfo(self, nearestbone); // set gettaginfo_name