From a4cd4aa7f7de8818f27760c7e7204587042b6e0d Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 16 May 2010 11:10:45 +0200 Subject: [PATCH] Fix sail command to use correct coordinate system It reported the ship's location in the ship'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 ship. --- src/lib/commands/sail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/sail.c b/src/lib/commands/sail.c index 0bb5cea0..df2f7197 100644 --- a/src/lib/commands/sail.c +++ b/src/lib/commands/sail.c @@ -120,7 +120,7 @@ cmd_sail_ship(struct nstr_item *nstr) } pr("Ship #%d at %s\n", ship.shp_uid, - xyas(ship.shp_x, ship.shp_y, ship.shp_own)); + xyas(ship.shp_x, ship.shp_y, player->cnum)); cp = getpath(navpath, player->argp[2], ship.shp_x, ship.shp_y, 0, 0, P_SAILING); if (!cp)