]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/landgun.c
Consistently require guns for dropping depth charges
[empserver] / src / lib / subs / landgun.c
index ec833ff310f4e8c539c583945fdb85f96f8b5002..4d9e6cec8eb440759f471991de99c383663de9cf 100644 (file)
@@ -133,7 +133,7 @@ shp_dchrg(struct shpstr *sp)
 
     if (sp->shp_effic < 60 || (mchr[sp->shp_type].m_flags & M_DCH) == 0)
        return -1;
-    if (sp->shp_item[I_MILIT] == 0)
+    if (sp->shp_item[I_MILIT] == 0 || sp->shp_item[I_GUN] == 0)
        return -1;
     shp_supply(sp, I_SHELL, 2);
     dchrgs = MIN(2, sp->shp_item[I_SHELL]);