]> git.pond.sub.org Git - empserver/commitdiff
fire: Drop useless special case "shp_fire() returns zero"
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 7 Jan 2014 20:52:32 +0000 (21:52 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 19 Jan 2014 09:17:00 +0000 (10:17 +0100)
Can't actually happen with the current damage formulas.  If it could,
then the special treatment would be inconsistent with sectors and land
units.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/commands/mfir.c

index f6f95d1b8da28ab040e956e73f922007535bde80..13056354c5f56601abf3dd97ee37e27da9e5ac73 100644 (file)
@@ -283,7 +283,7 @@ multifire(void)
                dam = shp_fire(&fship);
            }
            putship(fship.shp_uid, &fship);
-           if (dam == 0 || CANT_HAPPEN(dam < 0)) {
+           if (CANT_HAPPEN(dam < 0)) {
                pr("Klick!     ...\n");
                continue;
            }