From ee55f125a007803395a7ed0ce2871acc9460e48b Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 28 Apr 2026 16:03:04 -0400 Subject: [PATCH] follow-up bit for consoletty.c Limit the #ifdef INSURANCE range to only the function call that requires it. --- sys/windows/consoletty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/windows/consoletty.c b/sys/windows/consoletty.c index 926b4033f..781f85709 100644 --- a/sys/windows/consoletty.c +++ b/sys/windows/consoletty.c @@ -3120,17 +3120,17 @@ default_checkinput( if (dwWait == WAIT_FAILED) return '\033'; #endif -#ifdef INSURANCE if (iflags.idlecheckpoint && dwWait == WAIT_TIMEOUT && !done_a_checkpoint) { /* no input for 30 seconds, so let's take * advantage and do a game checkpoint, * then resume the wait. */ +#ifdef INSURANCE save_currentstate(); +#endif /* INSURANCE */ done_a_checkpoint = TRUE; } else -#endif /* INSURANCE */ { ReadConsoleInput(hConIn, ir, 1, count); if (mode == 0) {