From d96bd6e72852db8384f6c72ed6966a212853846d Mon Sep 17 00:00:00 2001 From: PatR Date: Thu, 19 Oct 2023 22:39:18 -0700 Subject: [PATCH] TTY_PERM_INVENT fix This fixes one of the two problems I encountered while testing tty resize changes: 'perm_inv' wouldn't work in a new game, whether set via config file or via 'm O', but would work if enabled (via either method) during a restored game. The problem with nothing appearing in the invent window's 'A' and 'B' slots (top of right-hand panel) is still present. Earlier I had assumed that 'A'..'Z' were all nonfunctional but slot 'C' works (and is shown in the expected place). That's slightly more mysterious.... Testing is difficult because I have to switch to a teeny tiny font in order to give the terminal window enough lines for TTY_PERM_INVENT to allow 'perm_inv'. --- src/allmain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/allmain.c b/src/allmain.c index fdbff9fc7..0786cd740 100644 --- a/src/allmain.c +++ b/src/allmain.c @@ -1,4 +1,4 @@ -/* NetHack 3.7 allmain.c $NHDT-Date: 1693359544 2023/08/30 01:39:04 $ $NHDT-Branch: keni-crashweb2 $:$NHDT-Revision: 1.220 $ */ +/* NetHack 3.7 allmain.c $NHDT-Date: 1697779529 2023/10/20 05:25:29 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.223 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Robert Patrick Rankin, 2012. */ /* NetHack may be freely redistributed. See license for details. */ @@ -65,6 +65,7 @@ moveloop_preamble(boolean resuming) } if (!resuming) { /* new game */ + gp.program_state.beyond_savefile_load = 1; /* for TTY_PERM_INVENT */ gc.context.rndencode = rnd(9000); set_wear((struct obj *) 0); /* for side-effects of starting gear */ reset_justpicked(gi.invent);