mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
Fix SMSG_UPDATE_OBJECT, SMSG_DESTROY_OBJECT, and some teleport opcodes
Authors: Strawberry, Trinity, me Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
This commit is contained in:
parent
39dda4bc4c
commit
f7cd8ce52a
24 changed files with 578 additions and 390 deletions
|
|
@ -887,7 +887,7 @@ void Map::SendInitSelf(Player* player)
|
|||
{
|
||||
DETAIL_LOG("Creating player data for himself %u", player->GetGUIDLow());
|
||||
|
||||
UpdateData data;
|
||||
UpdateData data(player->GetMapId());
|
||||
|
||||
// attach to player data current transport data
|
||||
if (Transport* transport = player->GetTransport())
|
||||
|
|
@ -924,7 +924,7 @@ void Map::SendInitTransports(Player* player)
|
|||
if (tmap.find(player->GetMapId()) == tmap.end())
|
||||
return;
|
||||
|
||||
UpdateData transData;
|
||||
UpdateData transData(player->GetMapId());
|
||||
|
||||
MapManager::TransportSet& tset = tmap[player->GetMapId()];
|
||||
|
||||
|
|
@ -951,7 +951,7 @@ void Map::SendRemoveTransports(Player* player)
|
|||
if (tmap.find(player->GetMapId()) == tmap.end())
|
||||
return;
|
||||
|
||||
UpdateData transData;
|
||||
UpdateData transData(player->GetMapId());
|
||||
|
||||
MapManager::TransportSet& tset = tmap[player->GetMapId()];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue