Skip to content

Commit

Permalink
Core/CharacterHandler Fix scene at first login
Browse files Browse the repository at this point in the history
  • Loading branch information
Traesh committed Aug 13, 2018
1 parent 2be25f6 commit 23d466a
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions src/server/game/Handlers/CharacterHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -981,27 +981,31 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder* holder)
else if (cEntry->CinematicSequenceID)
pCurrChar->SendCinematicStart(cEntry->CinematicSequenceID);
else if (ChrRacesEntry const* rEntry = sChrRacesStore.LookupEntry(pCurrChar->getRace()))
pCurrChar->SendCinematicStart(rEntry->CinematicSequenceID);
else
{
switch (pCurrChar->getRace())
if (rEntry->CinematicSequenceID)
pCurrChar->SendCinematicStart(rEntry->CinematicSequenceID);
else
{
// case RACE_HIGHMOUNTAIN_TAUREN:
// pCurrChar->GetSceneMgr().PlayScene(1901);
// break;
case RACE_NIGHTBORNE:
pCurrChar->GetSceneMgr().PlayScene(1900);
break;
case RACE_LIGHTFORGED_DRAENEI:
pCurrChar->GetSceneMgr().PlayScene(1902);
break;
case RACE_VOID_ELF:
pCurrChar->GetSceneMgr().PlayScene(1903);
break;
default:
break;
switch (pCurrChar->getRace())
{
// case RACE_HIGHMOUNTAIN_TAUREN:
// pCurrChar->GetSceneMgr().PlayScene(1901);
// break;
case RACE_NIGHTBORNE:
pCurrChar->GetSceneMgr().PlayScene(1900);
break;
case RACE_LIGHTFORGED_DRAENEI:
pCurrChar->GetSceneMgr().PlayScene(1902);
break;
case RACE_VOID_ELF:
pCurrChar->GetSceneMgr().PlayScene(1903);
break;
default:
break;
}
}
}

// send new char string if not empty
if (!sWorld->GetNewCharString().empty())
chH.PSendSysMessage("%s", sWorld->GetNewCharString().c_str());
Expand Down

0 comments on commit 23d466a

Please sign in to comment.