]> git.cameronkatri.com Git - bsdgames-darwin.git/commitdiff
Don't frob the interals of a WINDOW*, use the mvinch() macro.
authorsimonb <simonb@NetBSD.org>
Sun, 18 Apr 1999 03:29:01 +0000 (03:29 +0000)
committersimonb <simonb@NetBSD.org>
Sun, 18 Apr 1999 03:29:01 +0000 (03:29 +0000)
hunt/hunt/otto.c

index 773ceb7e6038316b9cc6ae92be0753d4637780ce..581efaa3442ee765a2f55fe4fa7b9fad9613f68b 100644 (file)
@@ -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
 # ifdef OTTO
 /*
  *     otto    - a hunt otto-matic player
@@ -12,7 +12,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
 
 #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>
 #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
 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
 # endif
 
 # ifndef DEBUG