]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/stop.c
commands: Rename the command functions
[empserver] / src / lib / commands / stop.c
index 32bdd314fabc3bfe0f2e3cd6e4e3d39a583c3f88..0d983bfcbf751db0805de358dfcf9fdf6c8cbc92 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-2021, 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>
@@ -46,13 +46,13 @@ static int start_stop_unit(int, char *, int);
 static void start_stop_unit_hdr(int);
 
 int
-start(void)
+c_start(void)
 {
     return start_stop(0);
 }
 
 int
-stop(void)
+c_stop(void)
 {
     return start_stop(1);
 }
@@ -160,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;