From: FruitieX Date: Fri, 10 Dec 2010 22:35:59 +0000 (+0200) Subject: use SUB_Remove instead in the init function that used to cause problems X-Git-Tag: xonotic-v0.1.0preview~51^2~18 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=dea2de58c3a611169038e13369a0d38321b7f64b use SUB_Remove instead in the init function that used to cause problems --- diff --git a/qcsrc/server/t_quake3.qc b/qcsrc/server/t_quake3.qc index c63b4de2fd..44036ade49 100644 --- a/qcsrc/server/t_quake3.qc +++ b/qcsrc/server/t_quake3.qc @@ -100,7 +100,9 @@ void target_give_init() self.armorvalue = 100; else if (targ.classname == "item_health_mega") self.health = 200; - remove(targ); + //remove(targ); // removing ents in init functions causes havoc, workaround: + targ.think = SUB_Remove; + targ.nextthink = time; } self.spawnflags = 2; spawnfunc_target_items();