*Try to fix the bug that players cannot see gameobject and creatures.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-01-23 19:26:47 -06:00
parent c3ce24c30f
commit 8a6277dab2
+8
View File
@@ -1736,6 +1736,14 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
ResetContestedPvP();
DestroyForNearbyPlayers();
{
UpdateData data;
for(ClientGUIDs::iterator i = m_clientGUIDs.begin(); i != m_clientGUIDs.end(); ++i)
data.AddOutOfRangeGUID(*i);
WorldPacket packet;
data.BuildPacket(&packet);
GetSession()->SendPacket(&packet);
}
m_clientGUIDs.clear();
// remove player from battleground on far teleport (when changing maps)