gomoku: allow saving a finished game without pressing Shift
This commit is contained in:
parent
5f9b935517
commit
f8dbe39b74
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue