mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 17:26:30 +00:00
Move timers to process loops
This commit is contained in:
@@ -561,6 +561,10 @@ bool Client::Process() {
|
|||||||
{
|
{
|
||||||
ItemTimerCheck();
|
ItemTimerCheck();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_clear_wearchange_cache_timer.Check()) {
|
||||||
|
m_last_seen_wearchange.clear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -395,10 +395,6 @@ void Mob::SendWearChange(uint8 material_slot, Client *one_client)
|
|||||||
|
|
||||||
w->wear_slot_id = material_slot;
|
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) {
|
if (GetRace() != m_last_wearchange_race_id) {
|
||||||
m_last_seen_wearchange.clear();
|
m_last_seen_wearchange.clear();
|
||||||
m_last_wearchange_race_id = GetRace();
|
m_last_wearchange_race_id = GetRace();
|
||||||
|
|||||||
@@ -632,6 +632,10 @@ bool NPC::Process()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (tic_timer.Check()) {
|
if (tic_timer.Check()) {
|
||||||
|
if (m_clear_wearchange_cache_timer.Check()) {
|
||||||
|
m_last_seen_wearchange.clear();
|
||||||
|
}
|
||||||
|
|
||||||
if (parse->HasQuestSub(GetNPCTypeID(), EVENT_TICK)) {
|
if (parse->HasQuestSub(GetNPCTypeID(), EVENT_TICK)) {
|
||||||
parse->EventNPC(EVENT_TICK, this, nullptr, "", 0);
|
parse->EventNPC(EVENT_TICK, this, nullptr, "", 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user