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:
parent
bc72ff768f
commit
a4cd4aa7f7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue