Core/Transports: solved all remaining visual issues for transports
This commit is contained in:
1 parent
846b5d1841
commit
c68e39d074
4 files changed
+33
-32
No files matched your search
@@ -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());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user