attack assault board: Fix message when attacking land unit dies
Loss of an attacking land is reported like this: @linf light infantry #1 dies assault 21,-3! Bad grammar and newline missing between the "@" casualty character and the message. Messed up in Empire 2. Affects only attackers, because the code special-cases defense to avoid the bad grammar there (close, but no cigar), and defenders don't get casualty characters printed. Fix it to @ linf light infantry #1 dies assaulting 21,-3! Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
6fd04eabee
commit
3a1f240dc4
1 changed files with 4 additions and 2 deletions
|
@ -183,8 +183,10 @@ lnd_take_casualty(int combat_mode, struct ulist *llp, int cas)
|
||||||
lnd_submil(&llp->unit.land, cas);
|
lnd_submil(&llp->unit.land, cas);
|
||||||
|
|
||||||
if (llp->unit.land.lnd_effic < LAND_MINEFF) {
|
if (llp->unit.land.lnd_effic < LAND_MINEFF) {
|
||||||
sprintf(buf, "dies %s %s!",
|
if (llp->unit.land.lnd_own == player->cnum)
|
||||||
combat_mode ? att_mode[combat_mode] : "defending",
|
pr("\n");
|
||||||
|
sprintf(buf, "dies %sing %s!",
|
||||||
|
att_mode[combat_mode],
|
||||||
xyas(llp->unit.land.lnd_x, llp->unit.land.lnd_y,
|
xyas(llp->unit.land.lnd_x, llp->unit.land.lnd_y,
|
||||||
llp->unit.land.lnd_own));
|
llp->unit.land.lnd_own));
|
||||||
lnd_print(llp->unit.land.lnd_own, llp, buf);
|
lnd_print(llp->unit.land.lnd_own, llp, buf);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue