X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fbattle.c;h=7e1d12454fa7945dc4330d797762b44415888668;hp=1d62ab18bb9afcb304329813aa08b39ed1145e94;hb=2b37ecca0c3bb58ae15b492f536303776eda9d73;hpb=0e9bdbb882f74cad6af644e3e1b530f9ffbf5e8d diff --git a/src/battle.c b/src/battle.c index 1d62ab1..7e1d124 100644 --- a/src/battle.c +++ b/src/battle.c @@ -6,7 +6,7 @@ void doshield(int i) int key; enum {NONE, SHUP, SHDN, NRG} action = NONE; - game.ididit = 0; + game.ididit = false; if (i == 2) action = SHUP; else { @@ -80,7 +80,7 @@ void doshield(int i) game.shldup=false; game.shldchg=1; prout(_("Shields lowered.")); - game.ididit=1; + game.ididit = true; return; case NRG: while (scan() != IHREAL) { @@ -109,7 +109,7 @@ void doshield(int i) prout(_("Engineering to bridge--")); prout(_(" Scott here. Power circuit problem, Captain.")); prout(_(" I can't drain the shields.")); - game.ididit = 0; + game.ididit = false; return; } if (game.shield+aaitem < 0) { @@ -733,7 +733,7 @@ void photon(void) double r, dummy; int key, n, i, osuabor; - game.ididit = 0; + game.ididit = false; if (damaged(DPHOTON)) { prout(_("Photon tubes damaged.")); @@ -822,7 +822,7 @@ void photon(void) if (targetcheck(targ[i][1], targ[i][2], &course[i])) return; } } - game.ididit = 1; + game.ididit = true; /* Loop for moving torpedoes */ osuabor = 0; for (i = 1; i <= n && !osuabor; i++) { @@ -1069,7 +1069,7 @@ void phasers(void) } if (powrem > 0.0) extra += powrem; hittem(hits); - game.ididit=1; + game.ididit = true; } if (extra > 0 && game.alldone == 0) { if (game.ithere) { @@ -1181,7 +1181,7 @@ void phasers(void) if (checkshctrl(rpow)) return; } hittem(hits); - game.ididit=1; + game.ididit = true; case NOTSET:; /* avoid gcc warning */ } /* Say shield raised or malfunction, if necessary */