(sail): Don't interpret negative x-coordinates as unsail argument.
This commit is contained in:
parent
ed1b47c05a
commit
7ea516852b
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ sail(void)
|
||||||
if (!snxtitem(&nstr, EF_SHIP, player->argp[1]))
|
if (!snxtitem(&nstr, EF_SHIP, player->argp[1]))
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
cp = player->argp[2];
|
cp = player->argp[2];
|
||||||
if (*player->argp[0] == 'u' || (cp && *cp == '-'))
|
if (*player->argp[0] == 'u' || (cp && !strcmp(cp, "-")))
|
||||||
return cmd_unsail_ship(&nstr);
|
return cmd_unsail_ship(&nstr);
|
||||||
if (cp && *cp == 'q')
|
if (cp && *cp == 'q')
|
||||||
return show_sail(&nstr);
|
return show_sail(&nstr);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue