]> git.pond.sub.org Git - empserver/commit
Simplify take_move_in_mob()
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 16 Feb 2008 17:29:35 +0000 (18:29 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 16 Feb 2008 19:57:39 +0000 (20:57 +0100)
commit74dc4b9e3a22a0886ee14035063863f6176ba8c5
tree9d97d3f7712173a59eec18f84010e122e2434598
parent5c2f7646e1deabf4b4a95d2b5e60fc24a3cfda20
Simplify take_move_in_mob()

Actually, this isn't just simplification.  When mobility gain per
update was configured to be greater than 128, mobility could go from 1
to less than -127 when assaulting from a landing ship, and thus
overflow.  Make it saturate at -127.  Note that you can expect plenty
of trouble elsewhere with such a silly configuration.
src/lib/subs/attsub.c