From: Martin Taibr Date: Fri, 30 Dec 2016 02:06:49 +0000 (+0100) Subject: minor optimization X-Git-Tag: xonotic-v0.8.2~342^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0410b8a15cddb5186efc00123bb812545a0b6807;p=xonotic%2Fxonotic-data.pk3dir.git minor optimization --- diff --git a/qcsrc/common/mutators/mutator/overkill/sv_overkill.qc b/qcsrc/common/mutators/mutator/overkill/sv_overkill.qc index 56bc8d14c..8bf9fe4a4 100644 --- a/qcsrc/common/mutators/mutator/overkill/sv_overkill.qc +++ b/qcsrc/common/mutators/mutator/overkill/sv_overkill.qc @@ -281,8 +281,7 @@ MUTATOR_HOOKFUNCTION(ok, OnEntityPreSpawn) wep.nextthink = time + 0.1; return true; } - - if(ent.classname == "item_invincible") + else if(ent.classname == "item_invincible") { entity wep = new(weapon_rpc); setorigin(wep, ent.origin);