Module Name: src
Committed By: rillig
Date: Sat May 28 20:57:26 UTC 2022
Modified Files:
src/games/gomoku: main.c
Log Message:
gomoku: allow saving a finished game without pressing Shift
To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/games/gomoku/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/games/gomoku/main.c
diff -u src/games/gomoku/main.c:1.63 src/games/gomoku/main.c:1.64
--- src/games/gomoku/main.c:1.63 Sat May 28 20:54:31 2022
+++ src/games/gomoku/main.c Sat May 28 20:57:26 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.63 2022/05/28 20:54:31 rillig Exp $ */
+/* $NetBSD: main.c,v 1.64 2022/05/28 20:57:26 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.63 2022/05/28 20:54:31 rillig Exp $");
+__RCSID("$NetBSD: main.c,v 1.64 2022/05/28 20:57:26 rillig Exp $");
#include <sys/stat.h>
#include <curses.h>
@@ -389,7 +389,7 @@ again:
int ch = get_key("YyNnQqSs");
if (ch == 'Y' || ch == 'y')
goto again;
- if (ch == 'S') { /* TODO: add 's' */
+ if (ch == 'S' || ch == 's') {
save_game();
goto replay;
}