From 890886bfa2129c7a06ceaac9df07bb3665f43476 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 16 May 2010 13:38:52 +0200 Subject: [PATCH] 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. --- src/lib/subs/detonate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/subs/detonate.c b/src/lib/subs/detonate.c index de8df182..b83841c1 100644 --- a/src/lib/subs/detonate.c +++ b/src/lib/subs/detonate.c @@ -99,7 +99,7 @@ detonate(struct nukstr *np, coord x, coord y, int airburst) if (type == SCT_SANCT) { mpr(bombown, "bounced off %s\n", xyas(ns.x, ns.y, bombown)); 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); continue; }