forked from ComputerScienceHouse/bingehack4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Count identical messages for dumping
Last messages shown in the dumplog now compress repeated messages, like this: "This door is locked. (12x)", so now it shows the last 30 different messages. Original implementation to go with NitroHack's original dumplog implementation. This also fixes a bug in upstream NitroHack with Norep() not detecting repeated messages properly; it was checking one-ahead of where it was supposed to in the circular buffer of recent messages. NitroHack doesn't seem to save or restore this recent messages buffer either, which I'm sure is a bug, but I haven't done anything about that here. (cherry picked from commit 5dc44480b48c59bc65424e6393e28ba189cc37db) Inspired by UnNetHack CS678. Conflicts: libnitrohack/src/pline.c
- Loading branch information
Showing
4 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters