Core/Transports: solved all remaining visual issues for transports

This commit is contained in:
Ovahlord committed 2019-10-05 03:46:31 +02:00
1 parent 846b5d1841
commit c68e39d074
4 files changed
+33 -32

No files matched your search

+2 -4
View File
@@ -643,10 +643,8 @@ void Object::BuildMovementUpdate(ByteBuffer* data, uint16 flags) const
{
if (GameObject const* go = ToGameObject())
{
if (MapTransport const* transport = go->ToMapTransport())
*data << uint32(transport->GetPathProgress());
else if (Transport const* transport = go->ToTransport())
*data << uint32(getMSTime() + transport->GetCurrentTransportTime());
if (Transport const* transport = go->ToTransport())
*data << uint32(transport->GetTimer());
else
*data << uint32(getMSTime());
}