diff options
author | QAston <none@none> | 2009-08-03 19:48:28 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-08-03 19:48:28 +0200 |
commit | 08cd876f368c7bbf4d7a8d9b39c81809e640f99d (patch) | |
tree | fb7d68af79b8eae60ab985aa5dcf1250c957ceb9 /src/game/Player.cpp | |
parent | 044b8b44a3efc5332f22be9d34ebdeee1ea49634 (diff) |
*Update zone for players after adding to map. - by VladimirMangos
*Skip instance loading for player with flypath/on transport.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 2da613aab8e..1d0c9024412 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -14656,7 +14656,7 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder ) else if (transGUID != 0) { // There are no transports on instances - assert (!instanceId); + instanceId = 0; m_movementInfo.t_x = fields[27].GetFloat(); m_movementInfo.t_y = fields[28].GetFloat(); @@ -14713,7 +14713,7 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder ) else if (!taxi_nodes.empty()) // Taxi Flight path loaded from db { // There are no flightpaths in instances - assert (!instanceId); + instanceId = 0; if(!m_taxi.LoadTaxiDestinationsFromString(taxi_nodes,GetTeam())) { @@ -18969,11 +18969,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); @@ -18985,6 +18980,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); |