From ee670a6a85930302837212e5c6d93e899b819c64 Mon Sep 17 00:00:00 2001 From: Chris Miles Date: Mon, 30 Jun 2025 13:40:33 -0500 Subject: [PATCH] Move timers to process loops --- zone/client_process.cpp | 4 ++++ zone/mob_appearance.cpp | 4 ---- zone/npc.cpp | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/zone/client_process.cpp b/zone/client_process.cpp index 31e914cc8..99f6a48f5 100644 --- a/zone/client_process.cpp +++ b/zone/client_process.cpp @@ -561,6 +561,10 @@ bool Client::Process() { { ItemTimerCheck(); } + + if (m_clear_wearchange_cache_timer.Check()) { + m_last_seen_wearchange.clear(); + } } } diff --git a/zone/mob_appearance.cpp b/zone/mob_appearance.cpp index 7a21a9be3..430247443 100644 --- a/zone/mob_appearance.cpp +++ b/zone/mob_appearance.cpp @@ -395,10 +395,6 @@ void Mob::SendWearChange(uint8 material_slot, Client *one_client) w->wear_slot_id = material_slot; - if (m_clear_wearchange_cache_timer.Check()) { - m_last_seen_wearchange.clear(); - } - if (GetRace() != m_last_wearchange_race_id) { m_last_seen_wearchange.clear(); m_last_wearchange_race_id = GetRace(); diff --git a/zone/npc.cpp b/zone/npc.cpp index 4a87dc1f6..ade7c8e93 100644 --- a/zone/npc.cpp +++ b/zone/npc.cpp @@ -632,6 +632,10 @@ bool NPC::Process() } if (tic_timer.Check()) { + if (m_clear_wearchange_cache_timer.Check()) { + m_last_seen_wearchange.clear(); + } + if (parse->HasQuestSub(GetNPCTypeID(), EVENT_TICK)) { parse->EventNPC(EVENT_TICK, this, nullptr, "", 0); }