}
return 0;
}
+
+void safety_abandon_run(void) {
+ SEG_IV;
+
+ FOR_SEG {
+ if (seg->moving) continue;
+ movpos_unreserve(seg->motion);
+ seg->motion= 0;
+ }
+}
/* ... for use by things which update these only, which
* is basically safety.c and resolve.c */
+void safety_abandon_run(void);
/*========== movpos.c ==========*/
/*
if (new_state < Sta_Run)
choreographers_all_abandon();
- if (new_state < Sta_Finalising)
+ if (new_state < Sta_Finalising) {
+ safety_abandon_run();
motions_all_abandon();
+ }
piob.l= 0;
switch (new_state) {