mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[9308] Fix SMSG_CHAR_ENUM opcode
Signed-off-by: Lightguard <Lightguard@tauri.hu>
This commit is contained in:
parent
0c8fccbd47
commit
cb33736a5a
4 changed files with 9 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue