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

src/lib/commands/sabo.c

index 5f568c42656e051de59537cfb64ff2eb125eb0a9..8e8a30b0cd8d4cb53dd05d213ff87f244b273d19 100644 (file)
@@ -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",