Core: Add loginFirst param to OnLogin hook to allow doing things on first login only

whitespacefix

Fix warning about unused param
This commit is contained in:
Rochet2 committed 2014-06-21 17:40:56 +03:00
1 parent 8ddf289e2f
commit 7240fafe94
5 files changed
+10 -8

No files matched your search

+2 -2
View File
@@ -1242,9 +1242,9 @@ void ScriptMgr::OnPlayerSpellCast(Player* player, Spell* spell, bool skipCheck)
FOREACH_SCRIPT(PlayerScript)->OnSpellCast(player, spell, skipCheck);
}
void ScriptMgr::OnPlayerLogin(Player* player)
void ScriptMgr::OnPlayerLogin(Player* player, bool firstLogin)
{
FOREACH_SCRIPT(PlayerScript)->OnLogin(player);
FOREACH_SCRIPT(PlayerScript)->OnLogin(player, firstLogin);
}
void ScriptMgr::OnPlayerLogout(Player* player)