From cc3d97d9b3793d4ea982730d4fbfca17fe0ed655 Mon Sep 17 00:00:00 2001 From: PatR Date: Thu, 8 Aug 2019 11:01:56 -0700 Subject: [PATCH] fix github issue #209 - typo in end_of_input() Fixes #209 Fix typo: program_statue should be program_state. Apparently NOSAVEONHANGUP+INSURANCE isn't used by anyone since it wouldn't compile. --- doc/fixes36.3 | 4 +++- src/cmd.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/fixes36.3 b/doc/fixes36.3 index aacc0e8de..907d9b883 100644 --- a/doc/fixes36.3 +++ b/doc/fixes36.3 @@ -1,4 +1,4 @@ -$NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.100 $ $NHDT-Date: 1565090653 2019/08/06 11:24:13 $ +$NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.101 $ $NHDT-Date: 1565287308 2019/08/08 18:01:48 $ This fixes36.3 file is here to capture information about updates in the 3.6.x lineage following the release of 3.6.2 in May 2019. Please note, however, @@ -116,6 +116,8 @@ when a boulder was teleported, if it landed in a pit or trap door or hole its former location wasn't updated to show that it wasn't there anymore (noticed in Sokoban but not limited to there) Terry Pratchett tribute, fix typo in passage #4 for Mort ("the" -> "they") +fix typo in end_of_input() present since 3.6.0 that would prevent compilation + for NOSAVEONHANGUP+INSURANCE configuration Fixes to Post-3.6.2 Problems that Were Exposed Via git Repository diff --git a/src/cmd.c b/src/cmd.c index 8fd6d5f68..6a89d3dd4 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 cmd.c $NHDT-Date: 1562838823 2019/07/11 09:53:43 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.340 $ */ +/* NetHack 3.6 cmd.c $NHDT-Date: 1565287308 2019/08/08 18:01:48 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.342 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Robert Patrick Rankin, 2013. */ /* NetHack may be freely redistributed. See license for details. */ @@ -5848,7 +5848,7 @@ end_of_input() #ifdef NOSAVEONHANGUP #ifdef INSURANCE if (flags.ins_chkpt && program_state.something_worth_saving) - program_statue.preserve_locks = 1; /* keep files for recovery */ + program_state.preserve_locks = 1; /* keep files for recovery */ #endif program_state.something_worth_saving = 0; /* don't save */ #endif