mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-17 13:29:41 -04:00
*Try to fix the bug that players cannot see gameobject and creatures.
--HG-- branch : trunk
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user