Core/Transport: fix logic error

justStopped was always set true, but when transports spawn and remain stationary timer, _currentFrame->ArriveTime and _currentFrame->DepartureTime are set to 0, making justStopped always remain true and triggering incorrect calls.
This commit is contained in:
ccrs
2017-05-02 13:47:51 +02:00
committed by Aokromes
parent 183758a4a1
commit e2153e5280

View File

@@ -149,8 +149,8 @@ void Transport::Update(uint32 diff)
if (timer < _currentFrame->DepartureTime)
{
justStopped = IsMoving();
SetMoving(false);
justStopped = true;
if (_pendingStop && GetGoState() != GO_STATE_READY)
{
SetGoState(GO_STATE_READY);