extern void gift(natid, natid, void *, char *);
extern int display_mark(i_type, int);
extern int nav_map(int, int, int);
-extern int do_unit_move(struct emp_qelem *, int *, double *, double *);
+extern int do_unit_move(struct emp_qelem *, double *, double *);
extern int count_pop(int);
extern int line_of_sight(char **rad, int ax, int ay, int bx, int by);
extern void plane_sona(struct emp_qelem *, int, int, struct shiplist **);
struct nstr_item ni_land;
struct emp_qelem land_list;
double minmob, maxmob;
- int together = 1;
if (!snxtitem(&ni_land, EF_LAND, player->argp[1], NULL))
return RET_SYN;
pr("No lands\n");
return RET_FAIL;
}
- return do_unit_move(&land_list, &together, &minmob, &maxmob);
+ return do_unit_move(&land_list, &minmob, &maxmob);
}
struct nstr_item ni_ship;
struct emp_qelem ship_list;
double minmob, maxmob;
- int together = 1;
if (!snxtitem(&ni_ship, EF_SHIP, player->argp[1], NULL))
return RET_SYN;
pr("No ships\n");
return RET_FAIL;
}
- return do_unit_move(&ship_list, &together, &minmob, &maxmob);
+ return do_unit_move(&ship_list, &minmob, &maxmob);
}
int
-do_unit_move(struct emp_qelem *ulist, int *together,
- double *minmob, double *maxmob)
+do_unit_move(struct emp_qelem *ulist, double *minmob, double *maxmob)
{
char *cp = NULL;
int leader_uid;
if (player->argp[2]) {
strcpy(buf, player->argp[2]);
- cp = unit_path(*together, leader, buf, sizeof(buf));
+ cp = unit_path(1, leader, buf, sizeof(buf));
}
while (!QEMPTY(ulist)) {
continue;
}
if (cp)
- cp = unit_path(*together, leader, buf, sizeof(buf));
+ cp = unit_path(1, leader, buf, sizeof(buf));
}
if (type == EF_SHIP) {
rad_map_set(player->cnum, leader->x, leader->y, leader->effic,