(getpath): Parameter showxy makes no sense and is not used. Remove.
Get rid of s_char. Callers changed.
This commit is contained in:
parent
21a39fd9dd
commit
269913baee
8 changed files with 14 additions and 21 deletions
|
@ -128,7 +128,7 @@ bomb(void)
|
|||
}
|
||||
ax = x;
|
||||
ay = y;
|
||||
if (getpath(flightpath, player->argp[5], ax, ay, 0, 0, 0, P_FLYING) == 0
|
||||
if (getpath(flightpath, player->argp[5], ax, ay, 0, 0, P_FLYING) == 0
|
||||
|| *flightpath == 0)
|
||||
return RET_SYN;
|
||||
tx = ax;
|
||||
|
|
|
@ -82,7 +82,7 @@ drop(void)
|
|||
}
|
||||
ax = x;
|
||||
ay = y;
|
||||
if (getpath(flightpath, player->argp[4], ax, ay, 0, 0, 0, P_FLYING) == 0
|
||||
if (getpath(flightpath, player->argp[4], ax, ay, 0, 0, P_FLYING) == 0
|
||||
|| *flightpath == 0)
|
||||
return RET_SYN;
|
||||
tx = ax;
|
||||
|
|
|
@ -87,7 +87,7 @@ fly(void)
|
|||
}
|
||||
ax = x;
|
||||
ay = y;
|
||||
if (getpath(flightpath, player->argp[4], ax, ay, 0, 0, 0, P_FLYING) == 0
|
||||
if (getpath(flightpath, player->argp[4], ax, ay, 0, 0, P_FLYING) == 0
|
||||
|| *flightpath == 0)
|
||||
return RET_SYN;
|
||||
tx = ax;
|
||||
|
|
|
@ -87,7 +87,7 @@ para(void)
|
|||
}
|
||||
ax = x;
|
||||
ay = y;
|
||||
if (getpath(flightpath, player->argp[4], ax, ay, 0, 0, 0, P_FLYING) == 0
|
||||
if (getpath(flightpath, player->argp[4], ax, ay, 0, 0, P_FLYING) == 0
|
||||
|| *flightpath == 0)
|
||||
return RET_SYN;
|
||||
tx = ax;
|
||||
|
|
|
@ -81,7 +81,7 @@ reco(void)
|
|||
}
|
||||
ax = x;
|
||||
ay = y;
|
||||
if (getpath(flightpath, player->argp[4], ax, ay, 0, 0, 0, P_FLYING) == 0
|
||||
if (getpath(flightpath, player->argp[4], ax, ay, 0, 0, P_FLYING) == 0
|
||||
|| *flightpath == 0)
|
||||
return RET_SYN;
|
||||
tx = ax;
|
||||
|
|
|
@ -138,7 +138,7 @@ cmd_sail_ship(struct nstr_item *nstr)
|
|||
pr("Ship #%d at %s\n", ship.shp_uid,
|
||||
xyas(ship.shp_x, ship.shp_y, ship.shp_own));
|
||||
cp = getpath(navpath, player->argp[2],
|
||||
ship.shp_x, ship.shp_y, 0, 0, 0, P_SAILING);
|
||||
ship.shp_x, ship.shp_y, 0, 0, P_SAILING);
|
||||
if (!check_ship_ok(&ship))
|
||||
continue;
|
||||
if (!player->aborted) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue