X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=src%2Ffinish.c;h=ac21d07a5480aeef5c9036abab96490b5a510de4;hb=3fad5b50fc2950c556a55e39a78e7129353af0b1;hp=9c518b6c4bfed28dfe2496ef8ea0fa63e85510e4;hpb=fbb4aa04129c7e9fbe17428c5e151d4afbdd039e;p=super-star-trek.git diff --git a/src/finish.c b/src/finish.c index 9c518b6..ac21d07 100644 --- a/src/finish.c +++ b/src/finish.c @@ -2,7 +2,8 @@ #include #include -void dstrct() +void selfdestruct(void) +/* self-destruct maneuver */ { /* Finish with a BANG! */ chew(); @@ -61,7 +62,7 @@ void kaboom(void) int l=1; while (l <= game.nenhere) { if (game.kpower[l]*game.kdist[l] <= whammo) - deadkl(game.ks[l], game.quad[game.ks[l].x][game.ks[l].y], game.ks[l].x, game.ks[l].y); + deadkl(game.ks[l], game.quad[game.ks[l].x][game.ks[l].y], game.ks[l]); l++; } } @@ -69,7 +70,8 @@ void kaboom(void) } -void finish(FINTYPE ifin) +void finish(FINTYPE ifin) +/* end the game, with appropriate notfications */ { bool igotit = false; game.alldone = true; @@ -139,7 +141,7 @@ void finish(FINTYPE ifin) else { proutn(_("Do you want your Commodore Emeritus Citation printed? ")); chew(); - if (ja()) { + if (ja() == true) { igotit = 1; } } @@ -313,6 +315,7 @@ void finish(FINTYPE ifin) } void score(void) +/* compute player's score */ { double timused = game.state.date - game.indate; int ithperd, iwon, klship; @@ -392,7 +395,9 @@ void score(void) prout(_("TOTAL SCORE %5d"), iscore); } -void plaque(void) { +void plaque(void) +/* emit winner's commemmorative plaque */ +{ FILE *fp=NULL; time_t t; char *timestring;