]> git.pond.sub.org Git - empserver/commit
Fix bugs in tracking of planes flying a sortie
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 29 Apr 2008 18:53:35 +0000 (20:53 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 29 Apr 2008 18:53:35 +0000 (20:53 +0200)
commit7bc63871c63013e64b25cf1f717af32191c2b917
treeb25a0f081598dd8ce4cd88cf56594f4f039c98e1
parent4e9e58bf6a75a00e323393c07c29828a1a44cc0a
Fix bugs in tracking of planes flying a sortie

Commit 7ca4f412 fixed tracking of planes flying a sortie by marking
them with flag PLN_LAUNCHED.  It failed to write SAMs and planes
flying missions back to the plane file, in sam_intercept() and
mission_pln_arm().  The only known problem with that is fairly
harmless: when the mission damages planes on the ground, the planes
flying it get damaged as if they were still sitting in their bases,
but the damage gets wiped out when they land.

The same issue applies to missiles.  So they need to be tracked as
well.  Do that in msl_hit().

While there, remove a few redundant PLN_LAUNCHED sanity checks.
src/lib/subs/aircombat.c
src/lib/subs/mission.c
src/lib/subs/mslsub.c
src/lib/subs/plnsub.c