]> git.pond.sub.org Git - empserver/commit
Fix SAM interception for intercepts other than the first
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 24 Sep 2008 22:49:54 +0000 (18:49 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 1 Feb 2009 16:14:39 +0000 (17:14 +0100)
commit7b4c0d171f07d16f1b77f5646db9ac3a7ee6040b
treeaf4fb29ac4e811daf2ba93ec938af1607da5b513
parentb54454fbc487dc3b81dad4d82ac79c22c3cd7752
Fix SAM interception for intercepts other than the first

A country's SAMs launched only in the first interception of a sortie.
That was because ac_intercept() made sam_intercept() delete all SAMs
from the list of available interceptors.  sam_intercept() also deleted
any SAMs out of range.  Don't do that, delete unused SAMs along with
other unused interceptors on return from ac_encounter().
src/lib/subs/aircombat.c