mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 03:14:50 +00:00
new upstream
git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@10080 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
10
rain/rain.c
10
rain/rain.c
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rain.c,v 1.14 2003/08/07 09:37:35 agc Exp $ */
|
||||
/* $NetBSD: rain.c,v 1.16 2004/02/08 22:21:57 jsm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)rain.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: rain.c,v 1.14 2003/08/07 09:37:35 agc Exp $");
|
||||
__RCSID("$NetBSD: rain.c,v 1.16 2004/02/08 22:21:57 jsm Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@@ -59,8 +59,8 @@ __RCSID("$NetBSD: rain.c,v 1.14 2003/08/07 09:37:35 agc Exp $");
|
||||
|
||||
volatile sig_atomic_t sig_caught = 0;
|
||||
|
||||
int main __P((int, char **));
|
||||
void onsig __P((int));
|
||||
int main(int, char **);
|
||||
void onsig(int);
|
||||
|
||||
|
||||
int
|
||||
@@ -92,7 +92,6 @@ main(argc, argv)
|
||||
}
|
||||
|
||||
initscr();
|
||||
leaveok(stdscr, TRUE);
|
||||
cols = COLS - 4;
|
||||
lines = LINES - 4;
|
||||
|
||||
@@ -103,6 +102,7 @@ main(argc, argv)
|
||||
(void)signal(SIGTSTP, onsig);
|
||||
(void)signal(SIGTERM, onsig);
|
||||
|
||||
curs_set(0);
|
||||
for (j = 4; j >= 0; --j) {
|
||||
xpos[j] = random() % cols + 2;
|
||||
ypos[j] = random() % lines + 2;
|
||||
|
||||
Reference in New Issue
Block a user