]> git.pond.sub.org Git - empserver/commit
Fix che revolt to damage only land units that actually fight
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 13 May 2010 17:48:20 +0000 (19:48 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 13 May 2010 18:08:21 +0000 (20:08 +0200)
commit10f5000aa12ca243b8dd95e0967f5a5dcdd11ddf
treec8bf2ee6aa883ae3593de4c7c8bc976ab7bc5086
parent162158fd4a67a04dab55374225d16295d2aecfac
Fix che revolt to damage only land units that actually fight

guerrilla() lets only the sector owner's land units fight.  But
take_casualties() spread the casualties among all land units in the
sector.  Thus, defending land units could survive a defeat if foreign
land units were present.  The sector takeover then had che capture
them, or their crews blow them up.  The foreign land units were
damaged silently.
src/lib/update/revolt.c