Source-Changes-HG archive

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

[src/trunk]: src/games/gomoku gomoku: in debug mode, after pressing 'd', allo...



details:   https://anonhg.NetBSD.org/src/rev/45b7cb81e220
branches:  trunk
changeset: 366264:45b7cb81e220
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat May 21 09:57:53 2022 +0000

description:
gomoku: in debug mode, after pressing 'd', allow another debug command

While here, remove the sleeping, as there is no obvious reason for it.

diffstat:

 games/gomoku/main.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r dd0d1bf3d2de -r 45b7cb81e220 games/gomoku/main.c
--- a/games/gomoku/main.c       Sat May 21 09:25:51 2022 +0000
+++ b/games/gomoku/main.c       Sat May 21 09:57:53 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.43 2022/05/21 09:25:51 rillig Exp $ */
+/*     $NetBSD: main.c,v 1.44 2022/05/21 09:57:53 rillig Exp $ */
 
 /*
  * Copyright (c) 1994
@@ -36,7 +36,7 @@
 __COPYRIGHT("@(#) Copyright (c) 1994\
  The Regents of the University of California.  All rights reserved.");
 /*     @(#)main.c      8.4 (Berkeley) 5/4/95   */
-__RCSID("$NetBSD: main.c,v 1.43 2022/05/21 09:25:51 rillig Exp $");
+__RCSID("$NetBSD: main.c,v 1.44 2022/05/21 09:57:53 rillig Exp $");
 
 #include <curses.h>
 #include <err.h>
@@ -394,8 +394,7 @@
        case 'd':               /* set debug level */
                debug = input[1] - '0';
                debuglog("Debug set to %d", debug);
-               sleep(1);
-               break;
+               goto top;
        case 'c':
                break;
        case 'b':               /* back up a move */



Home | Main Index | Thread Index | Old Index