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.

(cherry picked from commit dd2151cc7a)
This commit is contained in:
ccrs
2017-05-02 13:47:51 +02:00
committed by funjoker
parent 08f13f83af
commit a90f60f7d3

View File

@@ -154,8 +154,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);