]> git.pond.sub.org Git - empserver/commit - src/lib/update/ship.c
update: Rearrange code to pay non-sector military
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 22 Jun 2016 18:49:57 +0000 (20:49 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 18:08:30 +0000 (20:08 +0200)
commit5df43a5b3f3203d87c86c394934dea9059aafc80
tree710067c0f477502a7db9934998b0aaafbb3251fd
parent7951e91e3f0f31fafb1c90e37dac4ad2096c5e7f
update: Rearrange code to pay non-sector military

Split upd_slmilcosts() into prep_ships() and prep_lands().  Move the
sanity check for dead ships and land units from prod_ships() and
prod_lands() there.  Move their call from prepare_sects() to its
caller, along with pay_reserve().

Create prep_planes() for symmetry.  Pilots are now paid at the same
time as other military.  Can matter only when the country goes broke
during the update.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
include/update.h
src/lib/commands/budg.c
src/lib/update/land.c
src/lib/update/main.c
src/lib/update/plane.c
src/lib/update/prepare.c
src/lib/update/ship.c