diff options
author | simonb <simonb@NetBSD.org> | 1999-04-18 03:29:01 +0000 |
---|---|---|
committer | simonb <simonb@NetBSD.org> | 1999-04-18 03:29:01 +0000 |
commit | 2a748a9251600e3fed650bebd4f8af4e32f50447 (patch) | |
tree | 37334e33a98c56cabaa097f1b6a495a15ba466f3 /hunt | |
parent | aea9ff229cb368651ef9c98a28cc8cdd4976607a (diff) | |
download | bsdgames-darwin-2a748a9251600e3fed650bebd4f8af4e32f50447.tar.gz bsdgames-darwin-2a748a9251600e3fed650bebd4f8af4e32f50447.tar.zst bsdgames-darwin-2a748a9251600e3fed650bebd4f8af4e32f50447.zip |
Don't frob the interals of a WINDOW*, use the mvinch() macro.
Diffstat (limited to 'hunt')
-rw-r--r-- | hunt/hunt/otto.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/hunt/hunt/otto.c b/hunt/hunt/otto.c index 773ceb7e..581efaa3 100644 --- a/hunt/hunt/otto.c +++ b/hunt/hunt/otto.c @@ -1,4 +1,4 @@ -/* $NetBSD: otto.c,v 1.2 1997/10/10 16:32:39 lukem Exp $ */ +/* $NetBSD: otto.c,v 1.3 1999/04/18 03:29:01 simonb Exp $ */ # ifdef OTTO /* * otto - a hunt otto-matic player @@ -12,7 +12,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: otto.c,v 1.2 1997/10/10 16:32:39 lukem Exp $"); +__RCSID("$NetBSD: otto.c,v 1.3 1999/04/18 03:29:01 simonb Exp $"); #endif /* not lint */ # include <sys/time.h> @@ -41,11 +41,7 @@ __RCSID("$NetBSD: otto.c,v 1.2 1997/10/10 16:32:39 lukem Exp $"); extern char screen[SCREEN_HEIGHT][SCREEN_WIDTH2]; # define SCREEN(y, x) screen[y][x] # else -# if defined(BSD_RELEASE) && BSD_RELEASE >= 44 -# define SCREEN(y, x) stdscr->lines[y]->line[x].ch -# else -# define SCREEN(y, x) stdscr->_y[y][x] -# endif +# define SCREEN(y, x) mvinch(y, x) # endif # ifndef DEBUG |