]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
change respawn logic to only use the -1 "hidden totally, currently inactive" mode...
authorRudolf Polzer <divverent@alientrap.org>
Wed, 8 Sep 2010 10:33:38 +0000 (12:33 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 8 Sep 2010 10:33:38 +0000 (12:33 +0200)
qcsrc/server/t_items.qc

index f00369eb67bf554d3156a67f22edfd597120fcfa..c2b2deb8713cc919e32c450f30b3ebfdb009dc62 100644 (file)
@@ -233,11 +233,13 @@ void Item_ScheduleRespawnIn(entity e, float t)
 
 void Item_ScheduleRespawn(entity e)
 {
-       Item_Show(e, 0);
-       if(e.respawntime > 0) // if respawntime is -1, this item does not respawn
+       if(e.respawntime > 0)
+       {
+               Item_Show(e, 0);
                Item_ScheduleRespawnIn(e, ITEM_RESPAWNTIME(e));
-       else
-               remove(e);
+       }
+       else // if respawntime is -1, this item does not respawn
+               Item_Show(e, -1);
 }
 
 void Item_ScheduleInitialRespawn(entity e)