]> git.pond.sub.org Git - empserver/commit
Simplify plane selection for drop, fly, recon and sweep
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 27 Sep 2009 19:07:57 +0000 (15:07 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 8 Dec 2009 07:15:51 +0000 (08:15 +0100)
commit29a6baca6d58fde2ceff0ad485085d0d209f4b9c
treeff356539fe1e9ff7b876641831749b1b55a2b415
parentfd4da5aab3d306219bea487bd8c378490c533d0d
Simplify plane selection for drop, fly, recon and sweep

Plane flying commands first select the planes to fly the mission and
their escorts, then equip them.  They all fail when no planes to fly
the mission can be equipped.

Unlike bomb and paradrop, commands drop, fly, recon and sweep had an
additional check that made them fail when no planes to fly the mission
could be selected.  Because "none selected" implies "none equipped",
the additional check is redundant.  Remove it.

While there, break lines in calls of pln_sel() more tastefully.
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