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

@@ -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;