]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/bridgefall.c
bridgefall: Fix loss of bridge support with EASY_BRIDGES off
[empserver] / src / lib / subs / bridgefall.c
index b1174a147c035b7b96f96a52b8d9d32328ca8456..ffc79f98d1ed78e191834601cfa8fba2ecec3142 100644 (file)
@@ -94,11 +94,6 @@ bridgefall(struct sctstr *sp)
            nnx = nx + diroff[j][0];
            nny = ny + diroff[j][1];
            getsect(nnx, nny, &bh_sect);
-           if (bh_sect.sct_type == SCT_BHEAD &&
-               bh_sect.sct_newtype == SCT_BHEAD)
-               break;
-           if (bh_sect.sct_type == SCT_BTOWER)
-               break;
            /* With EASY_BRIDGES, it just has to be next to any
               land */
            if (opt_EASY_BRIDGES) {
@@ -106,6 +101,13 @@ bridgefall(struct sctstr *sp)
                    bh_sect.sct_type != SCT_BSPAN)
                    break;
            }
+           if (bh_sect.sct_effic < 20)
+               continue;
+           if (bh_sect.sct_type == SCT_BHEAD &&
+               bh_sect.sct_newtype == SCT_BHEAD)
+               break;
+           if (bh_sect.sct_type == SCT_BTOWER)
+               break;
        }
        if (j > 6) {
            knockdown(&sect);