(pln_arm): Callers don't use parameter tech; remove it. Callers
changed.
This commit is contained in:
parent
f0b4381c98
commit
8982ff2e18
7 changed files with 18 additions and 46 deletions
|
@ -88,7 +88,6 @@ bomb(void)
|
|||
{
|
||||
s_char *p;
|
||||
int mission_flags;
|
||||
int tech;
|
||||
coord tx, ty;
|
||||
coord ax, ay;
|
||||
int ap_to_target;
|
||||
|
@ -154,22 +153,17 @@ bomb(void)
|
|||
2, wantflags | P_F | P_ESC, P_M | P_O);
|
||||
/*
|
||||
* now arm and equip the bombers, transports, whatever.
|
||||
* tech is stored in high 16 bits of mission_flags.
|
||||
* yuck.
|
||||
*/
|
||||
tech = 0;
|
||||
mission_flags |= P_X; /* stealth (shhh) */
|
||||
mission_flags |= P_H; /* gets turned off if not all choppers */
|
||||
mission_flags =
|
||||
pln_arm(&bomb_list, 2 * ap_to_target, mission, ip, 0,
|
||||
mission_flags, &tech);
|
||||
mission_flags = pln_arm(&bomb_list, 2 * ap_to_target, mission,
|
||||
ip, 0, mission_flags);
|
||||
if (QEMPTY(&bomb_list)) {
|
||||
pr("No planes could be equipped for the mission.\n");
|
||||
return RET_FAIL;
|
||||
}
|
||||
mission_flags =
|
||||
pln_arm(&esc_list, 2 * ap_to_target, mission, ip, P_F | P_ESC,
|
||||
mission_flags, &tech);
|
||||
mission_flags = pln_arm(&esc_list, 2 * ap_to_target, mission,
|
||||
ip, P_F | P_ESC, mission_flags);
|
||||
ac_encounter(&bomb_list, &esc_list, ax, ay, flightpath, mission_flags,
|
||||
0, 0, 0);
|
||||
if (QEMPTY(&bomb_list)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue