]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/stre.c
Update copyright notice
[empserver] / src / lib / commands / stre.c
index 12f0a03b48d03074f4601a108a6a30c52abe89c7..1706e95023e2441c2f21f4f5e616beb2115e3316 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-2015, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                Ken Stevens, Steve McClure, Markus Armbruster
  *
  *  Empire is free software: you can redistribute it and/or modify
@@ -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))