Permalink
Browse files

Core/Scripting: codestyle and comment for previous commit

  • Loading branch information...
1 parent c1270bd commit 42454640cf9dea81687b3aef242167fe85cdb9a7 @Star-lion Star-lion committed Mar 2, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 src/server/game/Scripting/ScriptMgr.cpp
  2. +1 −0 src/server/game/Scripting/ScriptMgr.h
@@ -1297,7 +1297,7 @@ void ScriptMgr::OnPlayerBindToInstance(Player* player, Difficulty difficulty, ui
void ScriptMgr::OnPlayerUpdateZone(Player* player, uint32 newZone, uint32 newArea)
{
- FOREACH_SCRIPT(PlayerScript)->OnUpdateZone(player, newZone, newArea);
+ FOREACH_SCRIPT(PlayerScript)->OnUpdateZone(player, newZone, newArea);
}
// Guild
@@ -725,6 +725,7 @@ class PlayerScript : public ScriptObject
// Called when a player is bound to an instance
virtual void OnBindToInstance(Player* /*player*/, Difficulty /*difficulty*/, uint32 /*mapId*/, bool /*permanent*/) { }
+ // Called when a player switches to a new zone
virtual void OnUpdateZone(Player* /*player*/, uint32 /*newZone*/, uint32 /*newArea*/) { }
};

0 comments on commit 4245464

Please sign in to comment.