Core/Transports: solved several visual issues with transports which was causing them to move significantly slower than intended

This commit is contained in:
Ovahlord committed 2019-09-15 05:37:22 +02:00
1 parent a1edcd0aed
commit a1b90f3285
3 files changed
+15 -28

No files matched your search

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