]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/stre.c
Update copyright notice
[empserver] / src / lib / commands / stre.c
index e2d777264e0a0522b504ddcfea26ca1fe1868968..cb91b2e3d3a7e84c202082ce745cd6de035f1076 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-2014, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                Ken Stevens, Steve McClure, Markus Armbruster
  *
  *  Empire is free software: you can redistribute it and/or modify
@@ -28,7 +28,7 @@
  *
  *  Known contributors to this file:
  *     Ken Stevens, 1995
- *     Markus Armbruster, 2004-2009
+ *     Markus Armbruster, 2004-2010
  */
 
 #include <config.h>
@@ -36,7 +36,6 @@
 #include "combat.h"
 #include "commands.h"
 #include "land.h"
-#include "path.h"
 #include "ship.h"
 
 static double units_in_sector(struct combat *def);
@@ -135,7 +134,7 @@ units_in_sector(struct combat *def)
            continue;
        if (land.lnd_own != def->own)
            continue;
-       if (land.lnd_ship >= 0)
+       if (land.lnd_ship >= 0 || land.lnd_land >= 0)
            continue;
        d_unit = defense_val(&land);
        if (!lnd_could_be_supplied(&land))