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.
Fix log deviation when restoring on certain turns
Without this, restoring a game on a turn divisible by 15 advances RNG state without taking a turn, due to a check for automatic clairvoyance (also may change level memory in zero turns, noted on the NetHack wiki, so this bug also exists in vanilla NetHack). Similarly, restoring a game on a turn divisible by 100 may change game state due to real-time effects in zero turns, e.g. full moon or Friday the 13th, potentially causing log replay deviation of its own. For time-related messages to still be shown when restoring a game, they had to be split out into their own function. This bug also exists in upstream NitroHack. Fixes ComputerScienceHouse#45 on [DynaHack's tracker]. (cherry picked from commit 74ec0f19f568e14acf9c57763ae88d76c0b886fb) Conflicts: libnitrohack/src/allmain.c
- Loading branch information
Showing
1 changed file
with
57 additions
and
19 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