Correct ifdef for UTF8_GLYPHS for version display (reported by Pasi Kallinen)


git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1046 f1e491ac-5ded-4967-80bf-9f4855be876a
Fix expression in 2 hint mails (reported by David Damerell)


git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1047 f1e491ac-5ded-4967-80bf-9f4855be876a
Fix security bug in options handler (reported by Matthew Daley, fixed by Pasi Kallinen)

Quoting Matthew Daley:
Note the function 'escapes' in options.c, namely the branches starting
on lines 660 and 673. They process backslashes/carets in an escaped
string, converting them to the characters they represent. However,
they do not check that the character in the escaped string following
the backslash/caret is a valid one, and hence it can be anything,
including the null character. In this case the null character gets
written into the output buffer, and processing continues, skipping it.

This can be used to overflow the output buffer 'op_buf' on line 2108
in 'parseoptions' which is used to parse the 'menu_*' options and has
size BUFSZ, whereas the input buffer 'op' can be larger. When options
are being read from a config file through 'read_config_file' in
files.c, lines are read into a buffer of size BUFSZ*4 (line 1995). The
size of each comma-delimited option is then limited to only BUFSZ/2 by
'parseoptions' ('options.c' line 984), but this length check can be
bypassed by letting the faulty 'escapes' function continue parsing
over the null terminator (which was previously a comma separating
multiple options on a single config line) at the end of an option, and
onto the next one.


git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1048 f1e491ac-5ded-4967-80bf-9f4855be876a
Re-enable X11 configure options


git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1049 f1e491ac-5ded-4967-80bf-9f4855be876a
Sokoban luck penalty removed and added tracking of solving Sokoban without any tricks


git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1050 f1e491ac-5ded-4967-80bf-9f4855be876a
Use SporkHack's HP modifications in monster creation (from SporkHack)


git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1051 f1e491ac-5ded-4967-80bf-9f4855be876a
New monster: locusts (from SporkHack)


git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1052 f1e491ac-5ded-4967-80bf-9f4855be876a
HP notify, showing HP changes in the message area (from NAO)

# Notify HP changes in the message lines.
OPTIONS=hp_notify
# Optionally, change HP notify format. Accepts following codes:
#  %a = HP adjustment since last notification. No + or - sign.
#  %c = HP adjustment sign ('+' or '-')
#  %h = Current HP
#  %m = Max. HP
#  %H = Current HP, or "max" if hp=maxhp
OPTIONS=hp_notify_fmt:[HP%c%a=%H]


git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1053 f1e491ac-5ded-4967-80bf-9f4855be876a
Version bump to 4.1.1


git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1054 f1e491ac-5ded-4967-80bf-9f4855be876a
Fix compilation for sokoban_trickster() when RECORD_ACHIEVE is undefind


git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1055 f1e491ac-5ded-4967-80bf-9f4855be876a
Menus made aware of the maximum count of an item (by heinrich5991)

Closes ticket:131


git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1056 f1e491ac-5ded-4967-80bf-9f4855be876a
New config option for customizing monster letter in UTF8graphics:
MONSTERSYMBOL='horse':U+0127 # latin small letter h with stroke



git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1057 f1e491ac-5ded-4967-80bf-9f4855be876a
Allow vampires as playable race for convicts


git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1058 f1e491ac-5ded-4967-80bf-9f4855be876a
Config option for customizing UTF8graphics glyphs for items

Currently quite limited. No "red potions/wands/etc.".
Configuration is only read when starting a new game.


git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1059 f1e491ac-5ded-4967-80bf-9f4855be876a
Fix compilation when UTF8_GLYPHS is undefined


git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1060 f1e491ac-5ded-4967-80bf-9f4855be876a
Fix random dragon breaths when polymorphed into a chromatic dragon

Also add better boundary guards and give out a warning when an unexpected
breath weapon is being used.


git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1061 f1e491ac-5ded-4967-80bf-9f4855be876a
Fix: Refer to correct source code file in comment


git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1062 f1e491ac-5ded-4967-80bf-9f4855be876a
Fix: really reduce occurrences of hint daemon to once per game


git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1063 f1e491ac-5ded-4967-80bf-9f4855be876a
Bugfix: Fixed crash with ray beams at edges of maps


git-svn-id: https://unnethack.svn.sourceforge.net/svnroot/unnethack/trunk@1064 f1e491ac-5ded-4967-80bf-9f4855be876a