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.
3.8 KiB
3.8 KiB