mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Game: Include cleanup - removed G3D classes from packets
* Use our own Position class instead, with the coords written to packets being part of type
This commit is contained in:
@@ -210,7 +210,7 @@ void WorldSession::HandleQueryCorpseLocation(WorldPackets::Query::QueryCorpseLoc
|
||||
packet.Player = queryCorpseLocation.Player;
|
||||
packet.MapID = corpseMapID;
|
||||
packet.ActualMapID = mapID;
|
||||
packet.Position = G3D::Vector3(x, y, z);
|
||||
packet.Position = Position(x, y, z);
|
||||
packet.Transport = ObjectGuid::Empty;
|
||||
SendPacket(packet.Write());
|
||||
}
|
||||
@@ -284,7 +284,7 @@ void WorldSession::HandleQueryCorpseTransport(WorldPackets::Query::QueryCorpseTr
|
||||
Corpse* corpse = player->GetCorpse();
|
||||
if (_player->IsInSameRaidWith(player) && corpse && !corpse->GetTransGUID().IsEmpty() && corpse->GetTransGUID() == queryCorpseTransport.Transport)
|
||||
{
|
||||
response.Position = G3D::Vector3(corpse->GetTransOffsetX(), corpse->GetTransOffsetY(), corpse->GetTransOffsetZ());
|
||||
response.Position = corpse->GetTransOffset();
|
||||
response.Facing = corpse->GetTransOffsetO();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user