- if (error)
- return(0);
- sp = getshipp(fltp->leader);
- own = sp->shp_own;
- fltp_to_list(fltp, &ship_list); /* hack -KHS 1995 */
- for (s=sp->shp_path; (*s) && (fltp->maxmoves>0); s++) {
- dir = chkdir(*s, DIR_STOP, DIR_LAST);
- if (0 != (error = shp_nav_one_sector(&ship_list, dir, own, 0)))
- fltp->maxmoves = 1;
- --(fltp->maxmoves);
- }
- shp_put(&ship_list, own);
- getship(sp->shp_uid, &ship);
- fltp->x = ship.shp_x;
- fltp->y = ship.shp_y;
- for (p=&ship.shp_path[0]; *s; p++,s++)
- *p = *s;
- *p = 0;
- putship(ship.shp_uid, &ship);
+ }
+ if (error)
+ return (0);
+ sp = getshipp(fltp->leader);
+ own = sp->shp_own;
+ fltp_to_list(fltp, &ship_list); /* hack -KHS 1995 */
+ for (s = sp->shp_path; (*s) && (fltp->maxmoves > 0); s++) {
+ dir = chkdir(*s, DIR_STOP, DIR_LAST);
+ if (0 != (error = shp_nav_one_sector(&ship_list, dir, own, 0)))
+ fltp->maxmoves = 1;
+ --(fltp->maxmoves);
+ }
+ shp_put(&ship_list, own);
+ getship(sp->shp_uid, &ship);
+ fltp->x = ship.shp_x;
+ fltp->y = ship.shp_y;
+ for (p = &ship.shp_path[0]; *s; p++, s++)
+ *p = *s;
+ *p = 0;
+ putship(ship.shp_uid, &ship);