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:
Shauren
2017-05-16 22:16:21 +02:00
parent b421a5c0cb
commit a12a34b1dc
54 changed files with 288 additions and 348 deletions

View File

@@ -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();
}
}