Make land units on reserve mission react within op-area
Before, they always reacted to their maximum range, and the op-area was unused. Change mission() to define the op-area for reserve missions as well. Remove the special-case for showing reserve missions from mission() and show_mission(). New lnd_reaction_range() factored out of att_reacting_units(). Use it in oprange() to cover reserve missions. Pass the mission as separate parameter to oprange() for now, because miss() doesn't set it in the object until later.
This commit is contained in:
parent
40d8357746
commit
8e527b6cff
7 changed files with 40 additions and 52 deletions
|
@ -179,6 +179,7 @@ extern double lnd_mobcost(struct lndstr *, struct sctstr *);
|
|||
|
||||
extern double attack_val(int, struct lndstr *);
|
||||
extern double defense_val(struct lndstr *);
|
||||
extern int lnd_reaction_range(struct lndstr *);
|
||||
extern void lnd_print(struct ulist *, char *);
|
||||
extern void lnd_delete(struct ulist *, char *);
|
||||
extern int lnd_take_casualty(int, struct ulist *, int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue