From: Mircea Kitsune Date: Wed, 8 Sep 2010 09:55:36 +0000 (+0300) Subject: Don't ghost non-respawning items X-Git-Tag: xonotic-v0.1.0preview~315^2~4^2~3 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=914132c2378e1bc9697c38556d9f987da81b6904;p=xonotic%2Fxonotic-data.pk3dir.git Don't ghost non-respawning items --- diff --git a/qcsrc/server/t_items.qc b/qcsrc/server/t_items.qc index 449cebe8a..1b6c21710 100644 --- a/qcsrc/server/t_items.qc +++ b/qcsrc/server/t_items.qc @@ -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;