fix #H4039 - symset:default
Options parsing didn't support "default" (shown by the 'O' command) or "Default symbols" (menu entry for choosing a symbol set via the 'O' command. Symbol handling is somewhat confusing, but this seems to do the trick. They can't be truncated, but they're case-insensitive, and "Default" and "symbols" can be separated by dash or underscore as well as space, or run-together with no separator.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 options.c $NHDT-Date: 1448241657 2015/11/23 01:20:57 $ $NHDT-Branch: master $:$NHDT-Revision: 1.243 $ */
|
||||
/* NetHack 3.6 options.c $NHDT-Date: 1449830206 2015/12/11 10:36:46 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.244 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -2010,7 +2010,7 @@ boolean tinitial, tfrom_file;
|
||||
op, SYMBOLS);
|
||||
wait_synch();
|
||||
} else {
|
||||
switch_symbols(TRUE);
|
||||
switch_symbols(symset[PRIMARY].name != (char *) 0);
|
||||
need_redraw = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user