mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-09 13:51:10 +00:00
refactor(Core/Misc): add braces and impove codestyle (#6402)
This commit is contained in:
@@ -64,18 +64,22 @@ void EventProcessor::KillAllEvents(bool force)
|
||||
delete i_old->second;
|
||||
|
||||
if (!force) // need per-element cleanup
|
||||
{
|
||||
m_events.erase (i_old);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// fast clear event list (in force case)
|
||||
if (force)
|
||||
{
|
||||
m_events.clear();
|
||||
}
|
||||
}
|
||||
|
||||
void EventProcessor::AddEvent(BasicEvent* Event, uint64 e_time, bool set_addtime)
|
||||
{
|
||||
if (set_addtime) Event->m_addTime = m_time;
|
||||
if (set_addtime) { Event->m_addTime = m_time; }
|
||||
Event->m_execTime = e_time;
|
||||
m_events.insert(std::pair<uint64, BasicEvent*>(e_time, Event));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user