]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't reset times of items that are not available in the map
authorterencehill <piuntn@gmail.com>
Wed, 19 Aug 2015 12:19:16 +0000 (14:19 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 19 Aug 2015 12:19:16 +0000 (14:19 +0200)
qcsrc/server/command/vote.qc

index 4bd4e414a7a7def435eff21fbd907311f78ccfe0..daff32f9c500041a3bb2e311a97cb85bbb361dfb 100644 (file)
@@ -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))