From d526f08373097308d2818d9f79000f1192ac525d Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 14 Dec 2015 18:48:42 +0100 Subject: [PATCH] Itemstime: initially set times for all items to -1 in the client otherwise filtered out items (LMS filters them all out except extralife) appear as spawned in the panel (when hud_panel_itemstime_hidespawned is disabled) --- qcsrc/common/mutators/mutator/itemstime.qc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/qcsrc/common/mutators/mutator/itemstime.qc b/qcsrc/common/mutators/mutator/itemstime.qc index 975eb29f3..c9f6eaf77 100644 --- a/qcsrc/common/mutators/mutator/itemstime.qc +++ b/qcsrc/common/mutators/mutator/itemstime.qc @@ -26,6 +26,17 @@ NET_HANDLE(itemstime, bool isNew) #endif #ifdef CSQC +void Item_ItemsTime_Init() +{ + FOREACH(Items, true, LAMBDA( + ItemsTime_time[it.m_id] = -1; + )); +} + +STATIC_INIT(ItemsTime_Init) { + Item_ItemsTime_Init(); +} + int autocvar_hud_panel_itemstime = 2; float autocvar_hud_panel_itemstime_dynamicsize = 1; float autocvar_hud_panel_itemstime_ratio = 2; -- 2.39.2