13
0

fix mistaken "do not roll" conclusion in TransportFSM::compute_should_roll()

This commit is contained in:
Paul Davis 2020-01-18 21:14:17 -07:00
parent 620ab66e75
commit a439d8bbe4

View File

@ -418,7 +418,10 @@ TransportFSM::compute_should_roll (LocateTransportDisposition ltd) const
case MustStop: case MustStop:
return false; return false;
case RollIfAppropriate: case RollIfAppropriate:
if (rolling()) { /* by the time we call this, if we were rolling before the
locate, we've already transitioned into DeclickToLocate
*/
if (_motion_state == DeclickToLocate) {
return true; return true;
} else { } else {
return api->should_roll_after_locate (); return api->should_roll_after_locate ();