]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove a check which is now useless
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 14 Jan 2012 12:14:16 +0000 (14:14 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 14 Jan 2012 12:14:16 +0000 (14:14 +0200)
qcsrc/client/damage.qc

index 1199f50221a6320da0e6488f649abf7e6442e4fd..a0682eef1d66ca4be8232cb2f1e34bbcb479079c 100644 (file)
@@ -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