]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Itemstime: ignore weapons
authorTimePath <andrew.hardaker1995@gmail.com>
Thu, 29 Oct 2015 08:27:35 +0000 (19:27 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Thu, 29 Oct 2015 08:27:35 +0000 (19:27 +1100)
qcsrc/common/mutators/mutator/itemstime.qc

index 170862ad306f1bf5e20634e00a4f5b1d9560373d..5dc9fba674d06eaf46576ce326d72de15c461f7c 100644 (file)
@@ -102,7 +102,10 @@ void Item_ItemsTime_SetTime(entity e, float t)
         return;
 
     GameItem item = e.itemdef;
-    it_times[item.m_id] = t;
+    if (item.instanceOfGameItem && !item.instanceOfWeaponPickup)
+    {
+        it_times[item.m_id] = t;
+    }
 }
 
 void Item_ItemsTime_SetTimesForAllPlayers()