]> granicus.if.org Git - nethack/commit
fix bz 103+#H4095 - high scores ", while helpless"
authorPatR <rankin@nethack.org>
Fri, 18 Dec 2015 03:50:06 +0000 (19:50 -0800)
committerPatR <rankin@nethack.org>
Fri, 18 Dec 2015 03:50:06 +0000 (19:50 -0800)
commit20b2120f3f1b9888baad327f53a05b73d131d471
treea14ae3131f61a7635acaef7b455ea6152b20ba17
parent3e597b688234b7dd4f26ac2a718f3f2d33ef97fc
fix bz 103+#H4095 - high scores ", while helpless"

If a character dies with 'multi' at a non-zero value, the reason for
helplessness is appended to the cause of death.  But that was taking
place in writeentry(), which is used for every score entry while
rewriting 'record' when a new high score is added.  So whenever a new
score with helplessness was added, all existing entries got corrupted
by having the newest game's reason for helplessness tacked on.

Append the helplessness reason while formatting the cause of death
instead of when writing out score and logfile entries.  xlogfile is
handled a little differently in case the cause of death plus reason
for helplessness is too long so truncated for record and logfile.
Full reason is still put into xlogfile.
doc/fixes36.1
src/rip.c
src/topten.c