]> git.pond.sub.org Git - empserver/blobdiff - src/lib/common/ef_verify.c
init ef_verify: Don't monkey-patch capability miss, require it
[empserver] / src / lib / common / ef_verify.c
index 6d3a1e73d3a57c34348774860e0ad4fe17c5ec62..ad62de5b2f8e9d6f33f6a887cd1d67889d4ac185 100644 (file)
@@ -329,6 +329,13 @@ verify_ship_chr(void)
                        symbol_by_value(M_DCH, ship_chr_flags));
            retval = -1;
        }
+       if (mchr[i].m_nplanes && !(mchr[i].m_flags & (M_MSL | M_FLY))) {
+           verify_fail(EF_SHIP_CHR, i, NULL, 0,
+                       "non-zero nplanes needs flag %s or %s",
+                       symbol_by_value(M_FLY, ship_chr_flags),
+                       symbol_by_value(M_MSL, ship_chr_flags));
+           retval = -1;
+       }
     }
     return retval;
 }