From: Markus Armbruster Date: Sun, 16 May 2010 09:10:45 +0000 (+0200) Subject: Fix sail command to use correct coordinate system X-Git-Tag: v4.3.27~241 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=a4cd4aa7f7de8818f27760c7e7204587042b6e0d 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. --- diff --git a/src/lib/commands/sail.c b/src/lib/commands/sail.c index 0bb5cea0b..df2f7197a 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)