]> git.pond.sub.org Git - empserver/commit
subs: Split lnd_mar_put() off lnd_put() and specialize
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 25 Jan 2014 14:57:12 +0000 (15:57 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 17 Jan 2015 14:25:23 +0000 (15:25 +0100)
commit18bf9e0b34352025561fa72fca23e6651be4fb4d
tree9c5bdf2384b0ec13c4a68e4b3447742390adb677
parentb5ffc1ca49ac8e6f4bac5cd04c7bf9ef6e537419
subs: Split lnd_mar_put() off lnd_put() and specialize

lnd_put() serves two masters: march, which wants it to report
"stopped" and write back struct ulist member mobility to
unit.land.lnd_mobil, and ground combat, which doesn't.

lnd_put() assumes march when actor is non-zero.  Correct (but see
commit 8c502d4).  Dates back to Empire 2.

Too ugly for my taste.  Specialize for each master instead:
lnd_mar_put() for march, and lnd_put() for ground combat.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
include/land.h
src/lib/subs/attsub.c
src/lib/subs/lndsub.c