mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[8299] Move zone update form SendInitialPacketsBeforeAddToMap to SendInitialPacketsAfterAddToMap.
This must retore correct apply zone dependent auras at far teleport and login. Also must be restored chat channels update at far teleport.
This commit is contained in:
parent
39eca7d43a
commit
27e12424e5
2 changed files with 6 additions and 6 deletions
|
|
@ -18134,11 +18134,6 @@ void Player::SendInitialPacketsBeforeAddToMap()
|
|||
m_reputationMgr.SendInitialReputations();
|
||||
m_achievementMgr.SendAllAchievementData();
|
||||
|
||||
// update zone
|
||||
uint32 newzone, newarea;
|
||||
GetZoneAndAreaId(newzone,newarea);
|
||||
UpdateZone(newzone,newarea); // also call SendInitWorldStates();
|
||||
|
||||
SendEquipmentSetList();
|
||||
|
||||
data.Initialize(SMSG_LOGIN_SETTIMESPEED, 4 + 4 + 4);
|
||||
|
|
@ -18156,6 +18151,11 @@ void Player::SendInitialPacketsBeforeAddToMap()
|
|||
|
||||
void Player::SendInitialPacketsAfterAddToMap()
|
||||
{
|
||||
// update zone
|
||||
uint32 newzone, newarea;
|
||||
GetZoneAndAreaId(newzone,newarea);
|
||||
UpdateZone(newzone,newarea); // also call SendInitWorldStates();
|
||||
|
||||
WorldPacket data(SMSG_TIME_SYNC_REQ, 4); // new 2.0.x, enable movement
|
||||
data << uint32(0x00000000); // on blizz it increments periodically
|
||||
GetSession()->SendPacket(&data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue