]> git.pond.sub.org Git - empserver/commit
Clean up output destinations in march code
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 20 Jun 2010 08:42:34 +0000 (10:42 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 24 Jul 2010 09:28:33 +0000 (11:28 +0200)
commit3aca5a701a5e2a8f4cad460d6fc81fe68d14f171
tree7eafaef9936760fec327116ce7100f4f6ade3029
parenta207032625a54a9123c7f5e3ac248650b672d456
Clean up output destinations in march code

lnd_mar(), lnd_sweep() and lnd_mar_one_sector() printed to the current
player, their actor argument, and to land unit owner.
lnd_mar_one_sector()'s use of xyas() looked particularly suspicious:
it passed actor, then printed the result to the current player or land
unit owner.  Fortunately, all three are the same: all callers pass
current player for actor, and land unit owner is the same, since even
deities can't march foreign land units.  Normalize to actor for
consistency.

While there, rename lnd_mess() to lnd_stays().
src/lib/subs/lndsub.c