]> git.pond.sub.org Git - empserver/commit
Fix land unit attack mobility cost out of allied sectors
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 23 Jan 2011 18:39:48 +0000 (19:39 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 13 Feb 2011 15:03:34 +0000 (16:03 +0100)
commit98c5a92baaffe27267ad894cfeb6d1660746e635
tree1c8649fd396cc4570c2c2bed2ddf8c756eae6be4
parent13d9057bd8c2d660f95dc226dfd9298bc87cabe0
Fix land unit attack mobility cost out of allied sectors

Land units pay a mobility penalty when marching into a non-old-owned
sector without sector mobility, to slow them down in newly taken
sectors.  Attacking land units pay this penalty regardless of sector
mobility.

When attacking out of an allied sector, the penalty was computed as if
the land unit was owned by that ally.  Attacking sectors old-owned by
that ally was too cheap, and taking back one's own was too expensive.

Broken since attacking land units pay the "newly taken" mobility
penalty: commit 2e693275, v4.3.6.
src/lib/subs/attsub.c