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:
parent
79dccdf5a8
commit
890886bfa2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue