Skip to content

Commit bf33f91

Browse files
committed
Refactor timed event processing
1 parent fee840f commit bf33f91

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/server/game/Entities/GameObject/GameObject.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -475,11 +475,11 @@ void GameObject::Update(uint32 diff)
475475
{
476476
e->UpdateAI(this, diff);
477477

478-
if (elunaMapEvents) // can be null on maps without eluna
479-
elunaMapEvents->Update(diff);
478+
//if (elunaMapEvents) // can be null on maps without eluna
479+
// elunaMapEvents->Update(diff);
480480

481-
if (elunaWorldEvents)
482-
elunaWorldEvents->Update(diff);
481+
//if (elunaWorldEvents)
482+
// elunaWorldEvents->Update(diff);
483483
}
484484
#endif
485485
m_Events.Update(diff);

src/server/game/Entities/Unit/Unit.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,11 @@ Unit::~Unit()
438438
void Unit::Update(uint32 p_time)
439439
{
440440
#ifdef ELUNA
441-
if(elunaMapEvents) // can be null on maps without eluna
442-
elunaMapEvents->Update(p_time);
441+
//if(elunaMapEvents) // can be null on maps without eluna
442+
// elunaMapEvents->Update(p_time);
443443

444-
if (elunaWorldEvents) // can be null on maps without eluna
445-
elunaWorldEvents->Update(p_time);
444+
//if (elunaWorldEvents) // can be null on maps without eluna
445+
// elunaWorldEvents->Update(p_time);
446446
#endif
447447

448448
// WARNING! Order of execution here is important, do not change.

0 commit comments

Comments
 (0)