]> git.pond.sub.org Git - empserver/commit
Clean up output destinations in attack code
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 20 Jun 2010 08:02:27 +0000 (10:02 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 24 Jul 2010 09:28:33 +0000 (11:28 +0200)
commit2960ac40dbbe128f2be0bf9ba0aa0990027da304
tree17bc255e68e62d9a92e27763fa37c74551b932c3
parent18ce536041ae9e72f753a715ba84da8104043783
Clean up output destinations in attack code

take_def() and ask_move_in() printed both to the current player and to
land unit owner.  Their use of prcom() and xyas() looked particularly
suspicious: they used the current player, then printed the result to
the land unit owner.  Fortunately, current player and land unit owner
are the same, since even even deities can't attack with foreign land
units.  Normalize to current player for consistency.

Switch get_ototal(), get_oland(), kill_land() and move_in_land() to
current player as well.
include/land.h
src/lib/subs/attsub.c
src/lib/subs/lndsub.c