]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/mfir.c
Don't unlimber when guns unsuccessfully try to fire
[empserver] / src / lib / commands / mfir.c
index 88ec909adc315a681095aa10f0f61f7e8a76aa65..5c65583ce0dcb6a6a3e2a3ee28828dbc36fa9628 100644 (file)
@@ -188,7 +188,7 @@ multifire(void)
            }
            fx = fship.shp_x;
            fy = fship.shp_y;
-       } else if (type == EF_SECTOR) {
+       } else {
            if (!getsect(item.sect.sct_x, item.sect.sct_y, &fsect))
                continue;
            if (item.sect.sct_own != player->cnum)
@@ -356,7 +356,6 @@ multifire(void)
                continue;
            }
 
-           lnd_unlimber(&fland);
            if (target == targ_ship) {
                if (chance(lnd_acc(&fland) / 100.0))
                    dam = ldround(dam / 2.0, 1);
@@ -719,7 +718,6 @@ quiet_bigdef(int type, struct emp_qelem *list, natid own, natid aown,
        if (dam2 < 0)
            continue;
 
-       lnd_unlimber(&land);
        (*nfiring)++;
        if (!fp)
            add_to_flist(list, (struct empobj *)&land, dam2, 0);