From d1f0cfce929988939a67ebd403e52bd21501c0c7 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Mon, 10 Feb 2025 17:47:57 +0200 Subject: [PATCH] No hangup save while in tutorial Tutorial code doesn't handle saving and reloading the game gracefully, and manually saving has been disabled in there already. Also disable automatic saving in the tutorial when the terminal goes away. --- src/cmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cmd.c b/src/cmd.c index c038e6765..1bcb1d4fd 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -4924,6 +4924,9 @@ end_of_input(void) program_state.something_worth_saving = 0; /* don't save */ #endif + if (In_tutorial(&u.uz)) + program_state.something_worth_saving = 0; /* don't save in tutorial */ + #ifndef SAFERHANGUP if (!program_state.done_hup++) #endif