Pass only PM_* mission flags to ac_encounter()
Since the previous two commits, ac_encounter() checks its
mission_flags argument only for proper mission flags PM_R and PM_S,
not for plane flags P_A, P_S, P_I.
This makes the code to put plane flags into mission flags useless.
Remove it from bomb(), drop(), fly(), para(), reco(),
perform_mission(), mission_pln_arm(), air_defense(), pln_arm().
Much of that code was useless even before: P_X and P_H since Chainsaw
3 option STEALTHV became mandatory in Empire 2, and P_MINE since
commit cc0c3e4f
(v4.3.0) cleaned up mine drops.
This commit is contained in:
parent
4ea1d3acff
commit
b624ce30dd
8 changed files with 33 additions and 120 deletions
|
@ -552,8 +552,7 @@ extern int pln_airbase_ok(struct plnstr *, int, int);
|
|||
extern int carrier_planes(struct shpstr *, int);
|
||||
extern void pln_sel(struct nstr_item *, struct emp_qelem *,
|
||||
struct sctstr *, int, int, int, int);
|
||||
extern int pln_arm(struct emp_qelem *, int, char, struct ichrstr *,
|
||||
int, int);
|
||||
extern void pln_arm(struct emp_qelem *, int, char, struct ichrstr *, int);
|
||||
extern int pln_mobcost(int, struct plnstr *, int);
|
||||
extern void pln_put(struct emp_qelem *);
|
||||
extern void pln_put1(struct plist *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue