X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=main.c;h=6eb783ac46a1b715a4bb17f293e6bf74bc41d150;hb=704b86afbbf1f60af53a3edd27dafc795674d694;hp=c2e73a0c5281bc9ae877d24749c07f442c39f435;hpb=937714f31de5309ce951bfc8eff9f2bd8ecdbb69;p=open-adventure.git diff --git a/main.c b/main.c index c2e73a0..6eb783a 100644 --- a/main.c +++ b/main.c @@ -150,7 +150,7 @@ int main(int argc, char *argv[]) break; } /* show score and exit */ - score(quitgame); + terminate(quitgame); } static bool fallback_handler(char *buf) @@ -482,12 +482,11 @@ static void croak(FILE *cmdin) /* He died during closing time. No resurrection. Tally up a * death and exit. */ RSPEAK(DEATH_CLOSING); - score(endgame); - + terminate(endgame); } /* FIXME: Arithmetic on message numbers */ else if (game.numdie == MAXDIE || !YES(cmdin, WATCH_IT + game.numdie * 2, WHICH_WAY + game.numdie * 2, OK_MAN)) - score(endgame); + terminate(endgame); else { game.place[WATER] = game.place[OIL] = NOWHERE; if (TOTING(LAMP)) @@ -1121,8 +1120,7 @@ Laction: case GO_DWARFWAKE: /* Oh dear, he's disturbed the dwarves. */ RSPEAK(DWARVES_AWAKEN); - score(endgame); - return true; + terminate(endgame); default: BUG(99); }