X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Ftarget_spawn.qc;h=4da6b13bbbb948060ec40541307eeffddf84be95;hb=e2c3edceb3d745eb1b52cb69e8067e30b101c7fe;hp=55029775454e3b4202539ee60b5e70d91aeb8985;hpb=e8b6542f46abb4c4ae2afde8d37eff347ab8a33e;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/target_spawn.qc b/qcsrc/server/target_spawn.qc index 550297754..4da6b13bb 100644 --- a/qcsrc/server/target_spawn.qc +++ b/qcsrc/server/target_spawn.qc @@ -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;