minor optimization
authorMartin Taibr <taibr.martin@gmail.com>
Fri, 30 Dec 2016 02:06:49 +0000 (03:06 +0100)
committerMartin Taibr <taibr.martin@gmail.com>
Fri, 30 Dec 2016 02:06:49 +0000 (03:06 +0100)
qcsrc/common/mutators/mutator/overkill/sv_overkill.qc

index 56bc8d1..8bf9fe4 100644 (file)
@@ -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);