summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/sail/player.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/games/sail/player.h b/games/sail/player.h
index ae5d3ad492eb..76c91ab09e46 100644
--- a/games/sail/player.h
+++ b/games/sail/player.h
@@ -31,6 +31,7 @@
* SUCH DAMAGE.
*
* @(#)player.h 8.1 (Berkeley) 5/31/93
+ * $FreeBSD$
*/
#include <curses.h>
@@ -91,9 +92,9 @@
#define SLOT_R (SLOT_L+SLOT_X-1)
#ifdef SIGTSTP
-#define SCREENTEST() (initscr() != ERR && signal(SIGTSTP, SIG_DFL) != BADSIG && STAT_R < COLS && SCROLL_Y > 0)
+#define SCREENTEST() (initscr() != NULL && signal(SIGTSTP, SIG_DFL) != BADSIG && STAT_R < COLS && SCROLL_Y > 0)
#else
-#define SCREENTEST() (initscr() != ERR && STAT_R < COLS && SCROLL_Y > 0)
+#define SCREENTEST() (initscr() != NULL && STAT_R < COLS && SCROLL_Y > 0)
#endif
WINDOW *view_w;