[9308] Fix SMSG_CHAR_ENUM opcode

Signed-off-by: Lightguard <Lightguard@tauri.hu>
This commit is contained in:
Daveh 2010-02-05 01:33:30 +01:00 committed by Lightguard
parent 0c8fccbd47
commit cb33736a5a
4 changed files with 9 additions and 2 deletions

View file

@ -462,6 +462,8 @@ void WorldSession::HandleCharCreateOpcode( WorldPacket & recv_data )
if ((have_same_race && skipCinematics == CINEMATICS_SKIP_SAME_RACE) || skipCinematics == CINEMATICS_SKIP_ALL)
pNewChar->setCinematic(1); // not show intro
pNewChar->SetAtLoginFlag(AT_LOGIN_FIRST); // First login
// Player created, save it now
pNewChar->SaveToDB();
charcount += 1;
@ -774,6 +776,9 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder *holder)
SendNotification(LANG_RESET_TALENTS);
}
if (pCurrChar->HasAtLoginFlag(AT_LOGIN_FIRST))
pCurrChar->RemoveAtLoginFlag(AT_LOGIN_FIRST);
// show time before shutdown if shutdown planned.
if(sWorld.IsShutdowning())
sWorld.ShutdownMsg(true,pCurrChar);