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.
This commit is contained in:
Markus Armbruster 2010-05-16 11:10:45 +02:00
parent bc72ff768f
commit a4cd4aa7f7

View file

@ -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)