Fix sabotage command to use correct coordinate system
It reported the spy's location in the spy's coordinate system instead of the player's. Fortunately, they're the same in normal usage. They can differ only when a deity uses a foreign spy.
This commit is contained in:
parent
a4cd4aa7f7
commit
79dccdf5a8
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ sabo(void)
|
|||
continue;
|
||||
|
||||
pr("Explosion in %s causes %d damage.\n",
|
||||
xyas(land.lnd_x, land.lnd_y, land.lnd_own), dam);
|
||||
xyas(land.lnd_x, land.lnd_y, player->cnum), dam);
|
||||
if (sect.sct_own) {
|
||||
wu(0, sect.sct_own,
|
||||
"Sabotage in sector %s caused %d damage.\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue