It's always non-zero now.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
extern char *unit_nameof(struct empobj *);
extern void unit_list(struct emp_qelem *);
-extern char *unit_path(int, struct empobj *, char *, size_t);
+extern char *unit_path(struct empobj *, char *, size_t);
extern void unit_view(struct emp_qelem *);
extern void unit_teleport(struct empobj *, coord, coord);
extern int unit_update_cargo(struct empobj *);
if (player->argp[2]) {
strcpy(buf, player->argp[2]);
- cp = unit_path(1, leader, buf, sizeof(buf));
+ cp = unit_path(leader, buf, sizeof(buf));
}
while (!QEMPTY(ulist)) {
continue;
}
if (cp)
- cp = unit_path(1, leader, buf, sizeof(buf));
+ cp = unit_path(leader, buf, sizeof(buf));
}
if (type == EF_SHIP) {
rad_map_set(player->cnum, leader->x, leader->y, leader->effic,
}
char *
-unit_path(int together, struct empobj *unit, char *buf, size_t bufsz)
+unit_path(struct empobj *unit, char *buf, size_t bufsz)
{
coord destx;
coord desty;
if (!sarg_xy(buf, &destx, &desty))
return buf;
- if (!together) {
- pr("Cannot go to a destination sector if not all starting in the same sector\n");
- return NULL;
- }
if (unit->ef_type == EF_SHIP) {
c = path_find(unit->x, unit->y, destx, desty,
player->cnum, MOB_SAIL);