]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't ghost non-respawning items
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 8 Sep 2010 09:55:36 +0000 (12:55 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 8 Sep 2010 09:55:36 +0000 (12:55 +0300)
qcsrc/server/t_items.qc

index 449cebe8aa2d33a29ff91799710e74bf539516cc..1b6c21710df3cd78b309b35a0756e70ea4f43d5c 100644 (file)
@@ -55,7 +55,7 @@ float Item_Customize()
        }
        else
        {
-               if(g_ghost_items)
+               if(g_ghost_items && self.respawntime > 0) // if respawntime is -1, this item does not respawn
                {
                        self.colormod = stov(cvar_string("g_ghost_items_color"));
                        self.glowmod = self.colormod;
@@ -106,7 +106,7 @@ void Item_Show (entity e, float mode)
 
                e.spawnshieldtime = 0; // field indicates whether picking it up may give you anything other than the weapon
        }
-       else if(g_ghost_items)
+       else if(g_ghost_items && self.respawntime > 0) // if respawntime is -1, this item does not respawn
        {
                // make the item translucent green and not touchable
                e.model = e.mdl;