Fix nuclear detontation to use correct coordinate system

When the nuke bounced off a sanctuary, the bulletin to the sanctuary
owner used the attacker's coordinate system.  This disclosed the
attacker's origin.
This commit is contained in:
Markus Armbruster 2010-05-16 13:38:52 +02:00
parent 79dccdf5a8
commit 890886bfa2

View file

@ -99,7 +99,7 @@ detonate(struct nukstr *np, coord x, coord y, int airburst)
if (type == SCT_SANCT) { if (type == SCT_SANCT) {
mpr(bombown, "bounced off %s\n", xyas(ns.x, ns.y, bombown)); mpr(bombown, "bounced off %s\n", xyas(ns.x, ns.y, bombown));
mpr(own, "%s nuclear device bounced off %s\n", mpr(own, "%s nuclear device bounced off %s\n",
cname(bombown), xyas(ns.x, ns.y, bombown)); cname(bombown), xyas(ns.x, ns.y, own));
nreport(bombown, N_NUKE, own, 1); nreport(bombown, N_NUKE, own, 1);
continue; continue;
} }