]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/stop.c
Update copyright notice
[empserver] / src / lib / commands / stop.c
index 330d22f3216d3c4f12c7b9c78879b53b92836e94..8339595eebeaa47ec0e5a0d05b5843c3d13ee550 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2011, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2017, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                Ken Stevens, Steve McClure, Markus Armbruster
  *
  *  Empire is free software: you can redistribute it and/or modify
@@ -29,7 +29,7 @@
  *  Known contributors to this file:
  *     Thomas Ruschak, 1992
  *     Steve McClure, 1998
- *     Markus Armbruster, 2006-2010
+ *     Markus Armbruster, 2006-2013
  */
 
 #include <config.h>
@@ -37,7 +37,6 @@
 #include <ctype.h>
 #include "commands.h"
 #include "empobj.h"
-#include "path.h"
 
 static int start_stop(int);
 static int start_stop_sector(char *, int);
@@ -161,7 +160,7 @@ start_stop_unit(int type, char *arg, int off)
     prdate();
     nunit = 0;
     while (nxtitem(&nstr, &unit)) {
-       if (!player->owner)
+       if (!player->owner || !unit.gen.own)
            continue;
        if (!unit.gen.off == !off)
            continue;