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'.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user