Core/Transports: solved several visual issues with transports which was causing them to move significantly slower than intended
This commit is contained in:
1 parent
a1edcd0aed
commit
a1b90f3285
3 files changed
+15
-28
No files matched your search
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user