Skip to content

Commit b3dc00c

Browse files
committed
Remove Eluna event processor update code
1 parent bf33f91 commit b3dc00c

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -472,15 +472,7 @@ void GameObject::Update(uint32 diff)
472472
{
473473
#ifdef ELUNA
474474
if (Eluna* e = GetEluna())
475-
{
476475
e->UpdateAI(this, diff);
477-
478-
//if (elunaMapEvents) // can be null on maps without eluna
479-
// elunaMapEvents->Update(diff);
480-
481-
//if (elunaWorldEvents)
482-
// elunaWorldEvents->Update(diff);
483-
}
484476
#endif
485477
m_Events.Update(diff);
486478

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -437,14 +437,6 @@ Unit::~Unit()
437437

438438
void Unit::Update(uint32 p_time)
439439
{
440-
#ifdef ELUNA
441-
//if(elunaMapEvents) // can be null on maps without eluna
442-
// elunaMapEvents->Update(p_time);
443-
444-
//if (elunaWorldEvents) // can be null on maps without eluna
445-
// elunaWorldEvents->Update(p_time);
446-
#endif
447-
448440
// WARNING! Order of execution here is important, do not change.
449441
// Spells must be processed with event system BEFORE they go to _UpdateSpells.
450442
// Or else we may have some SPELL_STATE_FINISHED spells stalled in pointers, that is bad.

src/server/game/LuaEngine

0 commit comments

Comments
 (0)