]> git.pond.sub.org Git - empserver/commit
Fix bomb for non-tactical cargo bomber
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 3 Oct 2009 19:57:49 +0000 (15:57 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 12 Dec 2009 15:28:52 +0000 (16:28 +0100)
commit221027aca55ca61541927177d73d2600507796e1
tree5a53754231587e698bdc52fb266955e9bf80f1e2
parent7b7fe69c4679736d25781635dc931e1140e3cea3
Fix bomb for non-tactical cargo bomber

The various bombing functions silently skipped planes not carrying
bombs.  This sanity check was wrong: it checked capabilities "tactical
or not cargo" instead of "tactical or bomber", and failed for
non-tactical cargo bombers.  No such planes exist in the stock game.
The broken check comes from Chainsaw; it replaced an equally wrong
"not cargo" check.

Because pln_sel() lets only suitable planes go on a bombing run, the
broken sanity check is unnecessary.  Drop it.
src/lib/commands/bomb.c