]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 56bc8d14cce8d4fad53d010fd57ecea83fa17e1d..8bf9fe4a4f43134f9a9e91f146594887cbfc1bfc 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);