From 56bf236ff6db9c4123a74b66d5c5790b777e0e04 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 19 Aug 2015 14:19:16 +0200 Subject: [PATCH] Don't reset times of items that are not available in the map --- qcsrc/server/command/vote.qc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index 4bd4e414a..daff32f9c 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -361,7 +361,10 @@ void reset_map(float dorespawn) // since Item_Reset schedules respawn of superweapons and powerups for(self = world; (self = nextent(self)); ) if(IS_NOT_A_CLIENT(self)) - Item_ItemsTime_SetTime(self, 0); + { + if(self.reset) + Item_ItemsTime_SetTime(self, 0); + } for(self = world; (self = nextent(self)); ) if(IS_NOT_A_CLIENT(self)) -- 2.39.2