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.
This commit is contained in:
Markus Armbruster 2010-06-20 10:02:27 +02:00
parent 18ce536041
commit 2960ac40db
3 changed files with 26 additions and 23 deletions

View file

@ -180,7 +180,7 @@ extern double lnd_mobcost(struct lndstr *, struct sctstr *);
extern double attack_val(int, struct lndstr *);
extern double defense_val(struct lndstr *);
extern int lnd_reaction_range(struct lndstr *);
extern void lnd_print(struct ulist *, char *);
extern void lnd_print(natid, struct ulist *, char *);
extern void lnd_delete(struct ulist *);
extern int lnd_take_casualty(int, struct ulist *, int);
extern void lnd_submil(struct lndstr *, int);