Skip to content

Commit a4d5572

Browse files
committed
Rename Map update hook
1 parent 8e8cf20 commit a4d5572

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

LuaEngine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ class ELUNA_GAME_API Eluna
560560
void OnDestroy(Map* map);
561561
void OnPlayerEnter(Map* map, Player* player);
562562
void OnPlayerLeave(Map* map, Player* player);
563-
void OnUpdate(Map* map, uint32 diff);
563+
void OnMapUpdate(Map* map, uint32 diff);
564564
void OnAddToWorld(Creature* creature);
565565
void OnRemoveFromWorld(Creature* creature);
566566
void OnAddToWorld(GameObject* gameobject);

hooks/ServerHooks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ void Eluna::OnPlayerLeave(Map* map, Player* player)
318318
CallAllFunctions(ServerEventBindings, key);
319319
}
320320

321-
void Eluna::OnUpdate(Map* map, uint32 diff)
321+
void Eluna::OnMapUpdate(Map* map, uint32 diff)
322322
{
323323
START_HOOK(MAP_EVENT_ON_UPDATE);
324324
HookPush(map);

0 commit comments

Comments
 (0)