Core/Scripts: Reverted part of 00f343af52, that is not a typo and fixed the hook properly

This commit is contained in:
Shauren
2011-03-26 09:19:54 +01:00
parent 00f343af52
commit 18995661a7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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() { }