From: MirceaKitsune Date: Wed, 8 Sep 2010 09:58:46 +0000 (+0300) Subject: Comments X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e28dc27f034270a6e226db099148fa7a0c7fdf6c;p=voretournament%2Fvoretournament.git Comments --- diff --git a/data/qcsrc/server/t_items.qc b/data/qcsrc/server/t_items.qc index 71b38056..89e2b808 100644 --- a/data/qcsrc/server/t_items.qc +++ b/data/qcsrc/server/t_items.qc @@ -46,7 +46,7 @@ float Item_Customize() } else { - if(g_ghost_items && self.respawntime > 0) + 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; @@ -97,7 +97,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 && self.respawntime > 0) + 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; @@ -208,7 +208,7 @@ void Item_ScheduleRespawnIn(entity e, float t) void Item_ScheduleRespawn(entity e) { Item_Show(e, 0); - if(e.respawntime > 0) + if(e.respawntime > 0) // if respawntime is -1, this item does not respawn Item_ScheduleRespawnIn(e, ITEM_RESPAWNTIME(e)); }