diff options
author | jsm <jsm@NetBSD.org> | 1999-12-28 18:05:24 +0000 |
---|---|---|
committer | jsm <jsm@NetBSD.org> | 1999-12-28 18:05:24 +0000 |
commit | c435d53a06af69a6ac8764d44bd0121c389eb904 (patch) | |
tree | 4bdc489eb3b8ab546fc6bb83fd81bd17439196c1 /sail/globals.c | |
parent | c69e774d87a7cc2755bfc35f866e9863fbadeb15 (diff) | |
download | bsdgames-darwin-c435d53a06af69a6ac8764d44bd0121c389eb904.tar.gz bsdgames-darwin-c435d53a06af69a6ac8764d44bd0121c389eb904.tar.zst bsdgames-darwin-c435d53a06af69a6ac8764d44bd0121c389eb904.zip |
Use separate definitions and extern declarations of variables rather
than linker commons.
Diffstat (limited to 'sail/globals.c')
-rw-r--r-- | sail/globals.c | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/sail/globals.c b/sail/globals.c index 4e84fdce..5dd061d8 100644 --- a/sail/globals.c +++ b/sail/globals.c @@ -1,4 +1,4 @@ -/* $NetBSD: globals.c,v 1.7 1999/09/08 21:17:58 jsm Exp $ */ +/* $NetBSD: globals.c,v 1.8 1999/12/28 18:05:24 jsm Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)globals.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: globals.c,v 1.7 1999/09/08 21:17:58 jsm Exp $"); +__RCSID("$NetBSD: globals.c,v 1.8 1999/12/28 18:05:24 jsm Exp $"); #endif #endif /* not lint */ @@ -544,3 +544,24 @@ const char loadname[] = { '-', 'G', 'C', 'R', 'D', 'E' }; const char dr[] = { 0, 1, 1, 0, -1, -1, -1, 0, 1 }; const char dc[] = { 0, 0, -1, -1, -1, 0, 1, 1, 1 }; + +int mode; +jmp_buf restart; + +char debug; /* -D */ +char randomize; /* -x, give first available ship */ +char longfmt; /* -l, print score in long format */ +char nobells; /* -b, don't ring bell before Signal */ + +char issetuid; + +struct scenario *cc; /* the current scenario */ +struct ship *ls; /* &cc->ship[cc->vessels] */ + +int winddir; +int windspeed; +int turn; +int game; +int alive; +int people; +char hasdriver; |