]> git.pond.sub.org Git - empserver/commit
update/revolt: Fix mil count for che move after getting caught
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 18 Sep 2016 09:04:37 +0000 (11:04 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 18:09:19 +0000 (20:09 +0200)
commite55fb2227bb7a90bfe3e18a36fb359e07eea4b8c
tree8e2de8eb521503ed917fa52f20a3502a66fb3f01
parent849af9e06c6863ace80b78fed654f1a57a63d3b3
update/revolt: Fix mil count for che move after getting caught

When military catch che, their their count isn't updated for their
losses.  The count is later used when che consider moving to an
adjacent sector.  This could conceivably make them move instead of
stay.  Broken when Chainsaw 3 added land units.  Fix it.

Note that the sector's military count includes land units, but the
adjacent sectors' doesn't.  Should be improved some day; add a TODO
comment.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/update/revolt.c