]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/drop.c
(drop): A mining mission targeting land called pln_dropoff() instead
[empserver] / src / lib / commands / drop.c
index f4da458334c7437233c93010b4ec1492413acec7..bb2c4d7e8a5a54ca7c806f6c9d7020478d8d71da 100644 (file)
@@ -135,8 +135,7 @@ drop(void)
        pr("No planes got through fighter defenses\n");
     } else {
        getsect(tx, ty, &target);
-       if (target.sct_type == SCT_WATER && (mission_flags & P_MINE)
-           && ip->i_vtype == I_SHELL)
+       if (wantflags & P_MINE)
            pln_mine(&bomb_list, &target);
        else
            pln_dropoff(&bomb_list, ip, tx, ty, &target, EF_SECTOR);