(sail): Don't interpret negative x-coordinates as unsail argument.

This commit is contained in:
Markus Armbruster 2006-05-20 14:20:24 +00:00
parent ed1b47c05a
commit 7ea516852b

View file

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