mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-11-10 12:24:22 +08:00
HasEvents
This commit is contained in:
parent
12c56e2a3b
commit
832b3091f0
@ -121,7 +121,7 @@ class EventProcessor
|
||||
[[nodiscard]] uint64 CalculateQueueTime(uint64 delay) const;
|
||||
|
||||
void CancelEventGroup(uint8 group);
|
||||
bool HaveEventList() const { return !m_events.empty(); }
|
||||
bool HasEvents() const { return !m_events.empty(); }
|
||||
|
||||
protected:
|
||||
uint64 m_time{0};
|
||||
|
||||
@ -172,7 +172,7 @@ public:
|
||||
// currently unused for normal maps
|
||||
bool CanUnload(uint32 diff)
|
||||
{
|
||||
if (!m_unloadTimer || Events.HaveEventList())
|
||||
if (!m_unloadTimer || Events.HasEvents())
|
||||
return false;
|
||||
|
||||
if (m_unloadTimer <= diff)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user