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:
1 parent
183758a4a1
commit
e2153e5280
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user