From 28dcc434cc5e5346c7c33e5e2327beb4c0f0a329 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 24 Jan 2016 00:55:04 +0100 Subject: [PATCH] Avoid networking times of unsupported items --- qcsrc/common/mutators/mutator/itemstime.qc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcsrc/common/mutators/mutator/itemstime.qc b/qcsrc/common/mutators/mutator/itemstime.qc index 4f4f81fb6..6989f22b7 100644 --- a/qcsrc/common/mutators/mutator/itemstime.qc +++ b/qcsrc/common/mutators/mutator/itemstime.qc @@ -76,7 +76,7 @@ float it_times[Items_MAX]; void Item_ItemsTime_Init() { - FOREACH(Items, true, LAMBDA( + FOREACH(Items, Item_ItemsTime_Allow(it, '0 0 0'), LAMBDA( it_times[it.m_id] = -1; )); } @@ -88,21 +88,21 @@ STATIC_INIT(ItemsTime_Init) { void Item_ItemsTime_ResetTimes() { - FOREACH(Items, true, LAMBDA( + FOREACH(Items, Item_ItemsTime_Allow(it, '0 0 0'), LAMBDA( it_times[it.m_id] = (it_times[it.m_id] == -1) ? -1 : 0; )); } void Item_ItemsTime_ResetTimesForPlayer(entity e) { - FOREACH(Items, true, LAMBDA( + FOREACH(Items, Item_ItemsTime_Allow(it, '0 0 0'), LAMBDA( IT_Write(e, it.m_id, (it_times[it.m_id] == -1) ? -1 : 0); )); } void Item_ItemsTime_SetTimesForPlayer(entity e) { - FOREACH(Items, true, LAMBDA( + FOREACH(Items, Item_ItemsTime_Allow(it, '0 0 0'), LAMBDA( IT_Write(e, it.m_id, it_times[it.m_id]); )); } -- 2.39.2