/* install the new plan, if any */
if (seg->motion_newplan) {
- if (!seg->now_present) {
+ if (seg->motion_newplan == seg->motion) {
+ /* excellent, already doing it */
+ } else if (!seg->now_present) {
MovPosComb target= movpos_change_intent(seg->motion_newplan);
ec= movpos_change(seg, target, -1, seg->motion_newplan);
assert(!ec);
/* motion is updated by movpos_change */
} else {
+ /* we'll do it later, then */
seg->motion= seg->motion_newplan;
}
seg->motion_newplan= 0;