X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=src%2Ffinish.c;h=d23723b9813f4d491728a7f95815afbb7624592e;hb=459d6afcbe13be588b29c8bd1fbffb39b13fdee1;hp=c9e83335b56e4e0f0068af62af0a35ecab1dfdd9;hpb=8700dc6a521fe201815aad02cf05f7f4c297c305;p=super-star-trek.git diff --git a/src/finish.c b/src/finish.c index c9e8333..d23723b 100644 --- a/src/finish.c +++ b/src/finish.c @@ -61,7 +61,7 @@ void kaboom(void) int l=1; while (l <= game.nenhere) { if (game.kpower[l]*game.kdist[l] <= whammo) - deadkl(game.kx[l],game.ky[l], game.quad[game.kx[l]][game.ky[l]], game.kx[l], game.ky[l]); + deadkl(game.ks[l], game.quad[game.ks[l].x][game.ks[l].y], game.ks[l].x, game.ks[l].y); l++; } } @@ -71,8 +71,8 @@ void kaboom(void) void finish(FINTYPE ifin) { - int igotit = 0; - game.alldone = 1; + bool igotit = false; + game.alldone = true; skip(3); prout(_("It is stardate %.1f."), game.state.date); skip(1); @@ -84,7 +84,7 @@ void finish(FINTYPE ifin) prout(_("You have smashed the Klingon invasion fleet and saved")); prout(_("the Federation.")); - game.gamewon=1; + game.gamewon = true; if (game.alive) { double badpt; badpt = 5.0*game.state.starkl + game.casual + 10.0*game.state.nplankl + @@ -134,11 +134,7 @@ void finish(FINTYPE ifin) break; } if (game.skill >= SKILL_EXPERT) { - if (game.thawed -#ifdef DEBUG - && !game.idebug -#endif - ) + if (game.thawed && !idebug) prout(_("You cannot get a citation, so...")); else { proutn(_("Do you want your Commodore Emeritus Citation printed? "));