/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2007, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
#include <config.h>
#include <ctype.h>
-#include "misc.h"
-#include "player.h"
-#include "ship.h"
-#include "path.h"
-#include "xy.h"
-#include "nsc.h"
-#include "file.h"
#include "commands.h"
#include "optlist.h"
+#include "path.h"
+#include "ship.h"
static int
show_sail(struct nstr_item *nstr)
if (!snxtitem(&nstr, EF_SHIP, player->argp[1]))
return RET_SYN;
cp = player->argp[2];
- if (*player->argp[0] == 'u' || (cp && *cp == '-'))
+ if (*player->argp[0] == 'u' || (cp && !strcmp(cp, "-")))
return cmd_unsail_ship(&nstr);
if (cp && *cp == 'q')
return show_sail(&nstr);