Code is clearer without it.
int dummyint;
double dummydouble;
int dir;
int dummyint;
double dummydouble;
int dir;
/* just return if no autonaving to do for this ship */
if (!(sp->shp_autonav & AN_AUTONAV) || (sp->shp_autonav & AN_STANDBY))
return 0;
/* just return if no autonaving to do for this ship */
if (!(sp->shp_autonav & AN_AUTONAV) || (sp->shp_autonav & AN_STANDBY))
return 0;
/* Make a list of one ships so we can use the navi.c code */
emp_initque(&ship_list);
mlp = malloc(sizeof(struct ulist));
/* Make a list of one ships so we can use the navi.c code */
emp_initque(&ship_list);
mlp = malloc(sizeof(struct ulist));
sp->shp_destx[0], sp->shp_desty[0],
sp->shp_own);
if (!cp) {
sp->shp_destx[0], sp->shp_desty[0],
sp->shp_own);
if (!cp) {
"%s bad path, ship put on standby\n", prship(sp));
sp->shp_autonav |= AN_STANDBY;
putship(sp->shp_uid, sp);
"%s bad path, ship put on standby\n", prship(sp));
sp->shp_autonav |= AN_STANDBY;
putship(sp->shp_uid, sp);
/* Try to load the ship */
if (sp->shp_autonav & AN_LOADING) {
/* Try to load the ship */
if (sp->shp_autonav & AN_LOADING) {
- didsomething = nav_loadship(sp, cnum);
+ didsomething = nav_loadship(sp, sp->shp_own);
if (didsomething)
quit = 1;
}
if (didsomething)
quit = 1;
}