fix #K4113 - OPTIONS=symset:blank in RC file

Any plain text symbol set specified in .nethackrc or NETHACKOPTIONS
didn't get loaded but did set the symset name.

Faulty 'if' logic excluded loading of symbol sets that used the
default handling type of H_UNK.
This commit is contained in:
PatR
2024-03-02 05:50:44 -08:00
parent 140fb7215d
commit 5e79f8c425
2 changed files with 4 additions and 2 deletions

View File

@@ -1879,6 +1879,8 @@ Warning didn't show nearby monsters who were inside poison gas/steam/smoke
map didn't show adjacent monsters if they were inside a gas region unless
they were seen via telepathy or extended monster detection, but they
were described as if visible in messages (combat, for instance)
OPTIONS=symset:blank and symset:plain didn't load the specified symbols if
used from the RC file or NETHACKOPTIONS
Fixes to 3.7.0-x Platform and/or Interface Problems Exposed Via git Repository

View File

@@ -4058,9 +4058,9 @@ optfn_symset(
load_symset("default", PRIMARYSET);
}
#endif
switch_symbols(gs.symset[PRIMARYSET].name != (char *) 0);
go.opt_need_redraw = go.opt_need_glyph_reset = TRUE;
}
switch_symbols(gs.symset[PRIMARYSET].name != (char *) 0);
go.opt_need_redraw = go.opt_need_glyph_reset = TRUE;
}
} else
return optn_err;