mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Core/Transports: use getMSTime for at the correct places
This commit is contained in:
@@ -206,7 +206,7 @@ bool Transport::Create(ObjectGuid::LowType guidlow, uint32 entry, Map* map, uint
|
||||
|
||||
_isDynamicTransport = m_goValue.Transport.StopFrames->empty();
|
||||
|
||||
uint32 pathProgress = GameTime::GetGameTimeMS();
|
||||
uint32 pathProgress = getMSTime();
|
||||
if (m_goValue.Transport.AnimationInfo)
|
||||
pathProgress -= pathProgress % GetTransportPeriod();
|
||||
|
||||
@@ -366,7 +366,7 @@ void Transport::Update(uint32 diff)
|
||||
}
|
||||
}
|
||||
|
||||
SetPathProgress(GameTime::GetGameTimeMS() + GetCurrentTransportTime());
|
||||
SetPathProgress(getMSTime() + GetCurrentTransportTime());
|
||||
RelocateToProgress(GetCurrentTransportTime());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user