Core/Scripts: Reverted part of 00f343af52, that is not a typo and fixed the hook properly
This commit is contained in:
@@ -422,7 +422,7 @@ void ScriptMgr::OnShutdownCancel()
|
|||||||
|
|
||||||
void ScriptMgr::OnWorldUpdate(uint32 diff)
|
void ScriptMgr::OnWorldUpdate(uint32 diff)
|
||||||
{
|
{
|
||||||
FOREACH_SCRIPT(WorldScript)->OnUpdate(NULL, diff);
|
FOREACH_SCRIPT(WorldScript)->OnUpdate(diff);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScriptMgr::OnHonorCalculation(float& honor, uint8 level, float multiplier)
|
void ScriptMgr::OnHonorCalculation(float& honor, uint8 level, float multiplier)
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ class WorldScript : public ScriptObject, public UpdatableScript<void>
|
|||||||
virtual void OnShutdownCancel() { }
|
virtual void OnShutdownCancel() { }
|
||||||
|
|
||||||
// Called on every world tick (don't execute too heavy code here).
|
// Called on every world tick (don't execute too heavy code here).
|
||||||
virtual void OnWorldUpdate(uint32 /*diff*/) { }
|
virtual void OnUpdate(uint32 /*diff*/) { }
|
||||||
|
|
||||||
// Called when the world is started.
|
// Called when the world is started.
|
||||||
virtual void OnStartup() { }
|
virtual void OnStartup() { }
|
||||||
|
|||||||
Reference in New Issue
Block a user