From dea2de58c3a611169038e13369a0d38321b7f64b Mon Sep 17 00:00:00 2001 From: FruitieX Date: Sat, 11 Dec 2010 00:35:59 +0200 Subject: [PATCH] use SUB_Remove instead in the init function that used to cause problems --- qcsrc/server/t_quake3.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/t_quake3.qc b/qcsrc/server/t_quake3.qc index c63b4de2f..44036ade4 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(); -- 2.39.2