]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/aircombat.c
Disable some incorrect uses of supply_commod()
[empserver] / src / lib / subs / aircombat.c
index 11616ee916fcc0ee0140783c7982045297710855..106b797755c36e773eea550511a0093709a42a22 100644 (file)
@@ -770,12 +770,18 @@ ac_doflak(struct emp_qelem *list, struct sctstr *from)
 
     gun = MIN(FLAK_GUN_MAX, from->sct_item[I_GUN]);
     shell = from->sct_item[I_SHELL];
+#if 0
+    /*
+     * FIXME can supply from itself, causing seqno mismatch oops
+     * further down
+     */
     if (gun > shell * 2) {
        shell += supply_commod(from->sct_own, from->sct_x, from->sct_y,
                               I_SHELL, (gun + 1) / 2 - shell);
        from->sct_item[I_SHELL] = shell;
        putsect(from);
     }
+#endif
     if (gun > shell * 2)
        gun = shell * 2;