]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/t_items.qc
Add sv_itemstime cvar so itemstime can be completely disabled by the server
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_items.qc
index 2ad368db12475a86a8cbaf3801d5e3530dcea432..c6d5f1f9f9ce6f53efa0d243151ec20914e45f70 100644 (file)
@@ -506,11 +506,15 @@ void Item_ItemsTime_UpdateTime(entity e, float t)
                switch(e.items)
                {
                        case IT_HEALTH:
+                               if(!autocvar_sv_itemstime)
+                                       break;
                                //if (e.classname == "item_health_mega")
                                        if(Item_ItemsTime_UpdateTime_Check(it_health_mega_time, t))
                                                it_health_mega_time = t;
                                break;
                        case IT_ARMOR:
+                               if(!autocvar_sv_itemstime)
+                                       break;
                                if (e.classname == "item_armor_large")
                                        if(Item_ItemsTime_UpdateTime_Check(it_armor_large_time, t))
                                                it_armor_large_time = t;