From 914132c2378e1bc9697c38556d9f987da81b6904 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Wed, 8 Sep 2010 12:55:36 +0300 Subject: [PATCH] Don't ghost non-respawning items --- qcsrc/server/t_items.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2