Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/curses-v3]: src/games/sail Sync with -current (v 1.14)



details:   https://anonhg.NetBSD.org/src/rev/f6d4473bf0f2
branches:  curses-v3
changeset: 479958:f6d4473bf0f2
user:      jdc <jdc%NetBSD.org@localhost>
date:      Sat Feb 05 13:48:27 2000 +0000

description:
Sync with -current (v 1.14)

diffstat:

 games/sail/pl_7.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 732a0a0bd1f0 -r f6d4473bf0f2 games/sail/pl_7.c
--- a/games/sail/pl_7.c Fri Jan 21 18:27:20 2000 +0000
+++ b/games/sail/pl_7.c Sat Feb 05 13:48:27 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pl_7.c,v 1.13.2.1 2000/01/21 18:27:39 jdc Exp $        */
+/*     $NetBSD: pl_7.c,v 1.13.2.2 2000/02/05 13:48:27 jdc Exp $        */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)pl_7.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: pl_7.c,v 1.13.2.1 2000/01/21 18:27:39 jdc Exp $");
+__RCSID("$NetBSD: pl_7.c,v 1.13.2.2 2000/02/05 13:48:27 jdc Exp $");
 #endif
 #endif /* not lint */
 
@@ -80,6 +80,10 @@
 void
 initscreen()
 {
+       if (!SCREENTEST()) {
+               printf("Can't sail on this terminal.\n");
+               exit(1);
+       }
        /* initscr() already done in SCREENTEST() */
        view_w = newwin(VIEW_Y, VIEW_X, VIEW_T, VIEW_L);
        slot_w = newwin(SLOT_Y, SLOT_X, SLOT_T, SLOT_L);



Home | Main Index | Thread Index | Old Index