]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/mine.c
Make sure lmine can't lay seamines even when sector changes
[empserver] / src / lib / commands / mine.c
index 5b530dfdff430bb9c7206ca5b81b14d6f41d66fb..21937453dbf1dd9fb4431a1e59796cb6531a4d14 100644 (file)
@@ -137,7 +137,7 @@ landmine(void)
            return RET_FAIL;
        if (mines_wanted == 0)
            continue;
-       if (!check_land_ok(&land))
+       if (!check_land_ok(&land) || !check_sect_ok(&sect))
            continue;
        land.lnd_mission = 0;
        total_mines_laid = 0;