From 4773519c3ca66a948571225bea06be12a080dd8c Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 16 May 2010 20:18:14 +0200 Subject: [PATCH] Fix sweep command to use correct coordinate system When reporting sweeps, it reported the location in the plane owner's coordinate system instead of the player's. Fortunately, they're the same in normal usage. They can differ only when a deity flies foreign planes. --- src/lib/subs/plnsub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/subs/plnsub.c b/src/lib/subs/plnsub.c index 924f59c2..54f870d5 100644 --- a/src/lib/subs/plnsub.c +++ b/src/lib/subs/plnsub.c @@ -943,7 +943,7 @@ plane_sweep(struct emp_qelem *plane_list, coord x, coord y) if (chance((100.0 - pln_acc(pp)) / 100.0)) { pr("Sweep! in %s\n", - xyas(sect.sct_x, sect.sct_y, pp->pln_own)); + xyas(sect.sct_x, sect.sct_y, player->cnum)); mines_there--; found = 1; }