]> git.pond.sub.org Git - empserver/commitdiff
(multifire): Remove some dead code.
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 17 Sep 2004 12:54:49 +0000 (12:54 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Fri, 17 Sep 2004 12:54:49 +0000 (12:54 +0000)
src/lib/commands/mfir.c

index 95c7e3654fe482003cce076bd74847583722b860..bde1f791e6abc9c9cf1eda80f85467281a603f2a 100644 (file)
@@ -305,7 +305,6 @@ multifire(void)
            y = vsect.sct_y;
        }
        if (attacker == targ_ship) {
-           shots = -1;         /* convert to max later */
            if (fship.shp_own != player->cnum) {
                pr("Not your ship!\n");
                continue;
@@ -368,12 +367,7 @@ multifire(void)
            gun = min(gun, shell * 2);
            gun = min(gun, mil / 2);
            gun = max(gun, 1);
-           if (shots > gun || shots < 0)
-               shots = gun;
-           else if (shots == 0) {
-               pr("No shots fired.\n");
-               continue;
-           }
+           shots = gun;
            guneff = seagun(fship.shp_effic, shots);
            dam = (int)guneff;
            shell -= ldround(((double)shots) / 2.0, 1);