]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
use SUB_Remove instead in the init function that used to cause problems
authorFruitieX <fruitiex@gmail.com>
Fri, 10 Dec 2010 22:35:59 +0000 (00:35 +0200)
committerFruitieX <fruitiex@gmail.com>
Fri, 10 Dec 2010 22:35:59 +0000 (00:35 +0200)
qcsrc/server/t_quake3.qc

index c63b4de2fd2c949518c7ee93354bf5870234e312..44036ade494e9b437934f93438fdd5ead1dab8ab 100644 (file)
@@ -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();