]> git.pond.sub.org Git - empserver/commitdiff
Fix nuclear detontation to use correct coordinate system
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 16 May 2010 11:38:52 +0000 (13:38 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 21 Jun 2010 19:03:21 +0000 (21:03 +0200)
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

index de8df182087b9de5f5d6e112d879c4434d7dddb6..b83841c1a4b3af29f528a9e5ab440a055a499c90 100644 (file)
@@ -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;
        }