1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-02 08:57:44 +00:00

Call onEnter event after zone init packet have been sent

This commit is contained in:
Mordred 2018-02-04 23:58:45 +01:00
parent 7a75b40ce6
commit 9b1940d0a5
2 changed files with 2 additions and 3 deletions

View file

@ -1633,5 +1633,7 @@ void Player::sendZonePackets()
if( getLastPing() == 0 ) if( getLastPing() == 0 )
sendQuestInfo(); sendQuestInfo();
getCurrentZone()->onEnterTerritory( getAsPlayer() );
m_bMarkedForZoning = false; m_bMarkedForZoning = false;
} }

View file

@ -311,9 +311,6 @@ void Zone::pushActor( Entity::ActorPtr pActor )
m_sessionSet.insert( pSession ); m_sessionSet.insert( pSession );
m_playerMap[pPlayer->getId()] = pPlayer; m_playerMap[pPlayer->getId()] = pPlayer;
updateCellActivity( cx, cy, 2 ); updateCellActivity( cx, cy, 2 );
onEnterTerritory( pPlayer );
} }
else if( pActor->isBNpc() ) else if( pActor->isBNpc() )
{ {