]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/landgun.c
Don't unlimber when guns unsuccessfully try to fire
[empserver] / src / lib / subs / landgun.c
index a6a21da9e275cc94f7086d7babbb012e853d976f..160b403d517d35c6bd1442d19b41616b71e1fe3d 100644 (file)
@@ -207,6 +207,7 @@ lnd_fire(struct lndstr *lp)
                            I_SHELL, ammo - shells);
     if (shells == 0)
        return -1;
                            I_SHELL, ammo - shells);
     if (shells == 0)
        return -1;
+    lnd_unlimber(lp);
     d = landunitgun(lp->lnd_effic, guns);
     if (shells < ammo) {
        d *= (double)shells / (double)ammo;
     d = landunitgun(lp->lnd_effic, guns);
     if (shells < ammo) {
        d *= (double)shells / (double)ammo;