]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/target_spawn.qc
Clean up a bot weapon check
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / target_spawn.qc
index 55029775454e3b4202539ee60b5e70d91aeb8985..4da6b13bbbb948060ec40541307eeffddf84be95 100644 (file)
@@ -216,8 +216,7 @@ void target_spawn_edit_entity(entity e, string msg, entity kt, entity t2, entity
                        self = e;
                        activator = act;
 
-                       if(self.target_spawn_spawnfunc)
-                               self.target_spawn_spawnfunc();
+                       self.target_spawn_spawnfunc();
 
                        self = oldself;
                        activator = oldactivator;
@@ -257,7 +256,7 @@ float target_spawn_cancreate()
        ++c; // increase count to not include MYSELF
        for(e = world; (e = findfloat(e, target_spawn_id, self.target_spawn_id)); --c)
                ;
-       
+
        // if c now is 0, we have AT LEAST the given count (maybe more), so don't spawn any more
        if(c == 0)
                return 0;