fix github issue #238 - 'scores' optionv3.6.3.757eca7
commit757eca7fd98d8f72be798cde7ee0a5dc9d280826
authorPatR <rankin@nethack.org>
Sat, 26 Oct 2019 06:11:06 +0000 (25 23:11 -0700)
committerPatR <rankin@nethack.org>
Sat, 26 Oct 2019 06:11:06 +0000 (25 23:11 -0700)
tree3eaa6be7a972ef0f3038b6b511bee2e3f424077f
parentb7ca0b4cc6502a92e3cb5485d8e075e1fde227b8
fix github issue #238 - 'scores' option

Fixes #238

For the three fields in the 'scores' option's argument: top, around,
and own, if any was separated from preceding one by space(s) rather
than slash and lacked a count prefix, the argument parsing skipped
over it.  So "10t/3a/o" and "10t 3a 1o" worked but "10t 3a o" ignored
the 'o'.  The issue report was about 'own' but there's nothing special
about 'own' itself; just that it doesn't warrant a count prefix and is
usually last (in other words, normally preceded by one or both of the
other two) so more likely to trip over this.

[I thought there was another report about 'scores' misbehaving (from
quite a while ago) but couldn't find one.  If it exists, it might have
been about the same thing.]
doc/fixes36.3
src/options.c