Clean up the rather nasty logoc of snova(), and fix a minor navigation bug.
[super-star-trek.git] / src / battle.c
index 7e1d12454fa7945dc4330d797762b44415888668..08a8b16a97a17a76ea0ea9415e9e7258bc78a808 100644 (file)
@@ -16,7 +16,7 @@ void doshield(int i)
                action = NRG;
            else {
                chew();
-               if (!damaged(DSHIELD)) {
+               if (damaged(DSHIELD)) {
                    prout(_("Shields damaged and down."));
                    return;
                }
@@ -350,7 +350,7 @@ void torpedo(double course, double r, int inx, int iny, double *hit, int i, int
            return;
        case IHSTAR: /* Hit a star */
            if (Rand() > 0.10) {
-               nova(w.x, w.y);
+               nova(w);
                return;
            }
            crmena(true, IHSTAR, sector, w);