diff options
| author | jtc <jtc@NetBSD.org> | 1994-05-12 17:39:26 +0000 |
|---|---|---|
| committer | jtc <jtc@NetBSD.org> | 1994-05-12 17:39:26 +0000 |
| commit | 0b09ff9c6eb42c5557ff22b470c03b4bca1bda5a (patch) | |
| tree | a0e3934df36f11526587011391e26e18bfb6b758 /mille/mille.c | |
| parent | 7c6ccbcf4ec8dcb8f5c5de1a80604eebfefc8d9f (diff) | |
| download | bsdgames-darwin-0b09ff9c6eb42c5557ff22b470c03b4bca1bda5a.tar.gz bsdgames-darwin-0b09ff9c6eb42c5557ff22b470c03b4bca1bda5a.zip | |
sync with 44lite, seems to fix bug #224
Diffstat (limited to 'mille/mille.c')
| -rw-r--r-- | mille/mille.c | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/mille/mille.c b/mille/mille.c index e2ca3ad2..4d233b28 100644 --- a/mille/mille.c +++ b/mille/mille.c @@ -1,6 +1,6 @@ /* - * Copyright (c) 1982 Regents of the University of California. - * All rights reserved. + * Copyright (c) 1982, 1993 + * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -32,14 +32,14 @@ */ #ifndef lint -char copyright[] = -"@(#) Copyright (c) 1982 Regents of the University of California.\n\ - All rights reserved.\n"; +static char copyright[] = +"@(#) Copyright (c) 1982, 1993\n\ + The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #ifndef lint -/*static char sccsid[] = "from: @(#)mille.c 5.5 (Berkeley) 2/28/91";*/ -static char rcsid[] = "$Id: mille.c,v 1.2 1993/08/01 18:54:01 mycroft Exp $"; +/*static char sccsid[] = "from: @(#)mille.c 8.1 (Berkeley) 5/31/93";*/ +static char rcsid[] = "$Id: mille.c,v 1.3 1994/05/12 17:39:33 jtc Exp $"; #endif /* not lint */ # include "mille.h" @@ -82,13 +82,6 @@ reg char *av[]; { } Play = PLAYER; initscr(); -# ifdef attron -# define CA cursor_address -# endif - if (!CA) { - printf("Sorry. Need cursor addressing to play mille\n"); - exit(-1); - } delwin(stdscr); stdscr = Board = newwin(BOARD_Y, BOARD_X, 0, 0); Score = newwin(SCORE_Y, SCORE_X, 0, 40); @@ -152,20 +145,20 @@ rub() { (void)signal(SIGINT, SIG_IGN); if (getyn(REALLYPROMPT)) - die(); + die(0); (void)signal(SIGINT, rub); } /* * Time to go beddy-by */ -die() { +die(code) +int code; { (void)signal(SIGINT, SIG_IGN); if (outf) fflush(outf); mvcur(0, COLS - 1, LINES - 1, 0); endwin(); - exit(1); + exit(code); } - |
