(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:
parent
a33f1378e8
commit
5ea9060132
3 changed files with 15 additions and 19 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue