(mission, build_mission_list_type, show_mission, oprange): Remove the

type parameter as it can be determined from the empobj parameter.

(oprange): Remove getting the unit information again as it is contained
in the empobj parameter passed in.
This commit is contained in:
Ron Koenderink 2006-07-09 10:57:24 +00:00
parent a33f1378e8
commit 5ea9060132
3 changed files with 15 additions and 19 deletions

View file

@ -228,9 +228,9 @@ mission(void)
if ((mission == MI_INTERDICT || mission == MI_SUPPORT ||
mission == MI_OSUPPORT || mission == MI_DSUPPORT ||
mission == MI_AIR_DEFENSE) &&
(oprange(gp, type, &radius) < dist)) {
(oprange(gp, &radius) < dist)) {
pr("%s: out of range! (range %d)\n",
nameofitem(gp, type), oprange(gp, type, &radius));
nameofitem(gp, type), oprange(gp, &radius));
continue;
}