X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fbattle.c;h=08a8b16a97a17a76ea0ea9415e9e7258bc78a808;hp=7e1d12454fa7945dc4330d797762b44415888668;hb=ac174cf8ec82d71fe16ca5d4318c288586053b6f;hpb=2b37ecca0c3bb58ae15b492f536303776eda9d73 diff --git a/src/battle.c b/src/battle.c index 7e1d124..08a8b16 100644 --- a/src/battle.c +++ b/src/battle.c @@ -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);