]> git.pond.sub.org Git - empserver/commit
Pass only PM_* mission flags to ac_encounter()
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 21 Sep 2008 14:25:59 +0000 (10:25 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 1 Feb 2009 16:14:38 +0000 (17:14 +0100)
commitb624ce30dd786d7ac543de3f920bc8b88a2e1f5a
treee1ba85f31fbd1c649b4b724d43062fe379e3806f
parent4ea1d3acff4e4b8e07f66323ef4c623bc7ace476
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.
include/prototypes.h
src/lib/commands/bomb.c
src/lib/commands/drop.c
src/lib/commands/fly.c
src/lib/commands/para.c
src/lib/commands/reco.c
src/lib/subs/mission.c
src/lib/subs/plnsub.c