]> git.pond.sub.org Git - empserver/commit
Fix bombing of submarines with mixed force
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 8 Mar 2009 16:36:37 +0000 (17:36 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 8 Mar 2009 16:36:37 +0000 (17:36 +0100)
commitf10af4dea0778dad2df7e51ec52ee745977315a9
treeb01ff1ecf2ad1fa1828acecd4ec7471fda6f851d
parentf760150d8f18aa23bb43f827c9884986911b15ff
Fix bombing of submarines with mixed force

When bombing ships with a force containing both planes with and
without capability ASW, pin_bomb() could fail to report presence of
submarines, and could refuse to bomb ships when there were only
submarines.  The culprit is pin_bomb()'s check for capability ASW: it
checked whether the first plane in the plane list was capable instead
of checking whether any plane in the list was capable.
src/lib/commands/bomb.c