diff options
author | dholland <dholland@NetBSD.org> | 2008-02-03 20:01:24 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2008-02-03 20:01:24 +0000 |
commit | 476d2b8cf076c51c8aa05419833b24369b8ee286 (patch) | |
tree | 34315d72c41ad5e8a26587e7c5b632bdf9956aa4 /larn/tok.c | |
parent | 257d036dc21241f2c8202514775c399945bbd3e2 (diff) | |
download | bsdgames-darwin-476d2b8cf076c51c8aa05419833b24369b8ee286.tar.gz bsdgames-darwin-476d2b8cf076c51c8aa05419833b24369b8ee286.tar.zst bsdgames-darwin-476d2b8cf076c51c8aa05419833b24369b8ee286.zip |
A long time ago, larn had code to prohibit playing it during work hours.
Most of this code was removed ages ago, probably when dm(6) was invented;
long before -r1.1 in the NetBSD tree in any event.
Now remove the last fragment of it.
Also nuke the file of US holidays 1987-1993 that we've been carrying
around for no reason.
Diffstat (limited to 'larn/tok.c')
-rw-r--r-- | larn/tok.c | 27 |
1 files changed, 6 insertions, 21 deletions
@@ -1,9 +1,9 @@ -/* $NetBSD: tok.c,v 1.7 2008/01/28 05:38:54 dholland Exp $ */ +/* $NetBSD: tok.c,v 1.8 2008/02/03 20:01:24 dholland Exp $ */ /* tok.c Larn is copyrighted 1986 by Noah Morgan. */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: tok.c,v 1.7 2008/01/28 05:38:54 dholland Exp $"); +__RCSID("$NetBSD: tok.c,v 1.8 2008/02/03 20:01:24 dholland Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -16,7 +16,7 @@ __RCSID("$NetBSD: tok.c,v 1.7 2008/01/28 05:38:54 dholland Exp $"); #include "extern.h" static char lastok = 0; -int yrepcount = 0, dayplay = 0; +int yrepcount = 0; #ifndef FLUSHNO #define FLUSHNO 5 #endif /* FLUSHNO */ @@ -65,22 +65,6 @@ yylex() exit(); } #endif - - -#ifdef TIMECHECK - if (dayplay == 0) - if (playable()) { - cursor(1, 19); - lprcat("\nSorry, but it is now time for work. Your game has been saved.\n"); - beep(); - lflush(); - savegame(savefilename); - wizard = nomove = 1; - sleep(4); - died(-257); - } -#endif /* TIMECHECK */ - } do { /* if keyboard input buffer is too big, flush * some of it */ @@ -249,8 +233,9 @@ readopts() if ((i = lgetw()) == 0) break; strlcpy(psname, i, PSNAMESIZE); - } else if (strcmp(i, "play-day-play") == 0) - dayplay = 1; + } else if (strcmp(i, "play-day-play") == 0) { + /* bypass time restrictions: ignored */ + } break; case 's': |