mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[0027] Prevent sending transport maps in player update object (will be replaced by a better fix later). Should fix the random teleports for this moment...
Fixed aura update (Fixes warrior/paladin client freeze on world login).
This commit is contained in:
parent
eb3f94c24e
commit
3561a43fe1
5 changed files with 26 additions and 5 deletions
|
|
@ -891,9 +891,7 @@ void Map::SendInitSelf(Player* player)
|
|||
|
||||
// attach to player data current transport data
|
||||
if (Transport* transport = player->GetTransport())
|
||||
{
|
||||
transport->BuildCreateUpdateBlockForPlayer(&data, player);
|
||||
}
|
||||
|
||||
// build data for self presence in world at own client (one time for map)
|
||||
player->BuildCreateUpdateBlockForPlayer(&data, player);
|
||||
|
|
@ -939,6 +937,11 @@ void Map::SendInitTransports(Player* player)
|
|||
|
||||
WorldPacket packet;
|
||||
transData.BuildPacket(&packet);
|
||||
|
||||
// Prevent sending transport maps in player update object
|
||||
if (packet.ReadUInt16() != player->GetMapId())
|
||||
return;
|
||||
|
||||
player->GetSession()->SendPacket(&packet);
|
||||
}
|
||||
|
||||
|
|
@ -962,6 +965,11 @@ void Map::SendRemoveTransports(Player* player)
|
|||
|
||||
WorldPacket packet;
|
||||
transData.BuildPacket(&packet);
|
||||
|
||||
// Prevent sending transport maps in player update object
|
||||
if (packet.ReadUInt16() != player->GetMapId())
|
||||
return;
|
||||
|
||||
player->GetSession()->SendPacket(&packet);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue