]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/boar.c
Fix "sector can board" test to ignore land units on land units
[empserver] / src / lib / commands / boar.c
index b153153a66bb5c254069686b72d3220f584c3f61..c0dfafeca1c53356d437f92569615ab797075339 100644 (file)
@@ -90,7 +90,7 @@ boar(void)
            while (nxtitem(&ni, &land)) {
                if (land.lnd_own != player->cnum)
                    continue;
-               if (land.lnd_ship >= 0)
+               if (land.lnd_ship >= 0 || land.lnd_land >= 0)
                    continue;
                if (land.lnd_mobil <= 0)
                    continue;