-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Something's wrong with the way lava was being handled in moveloop(). If you were trapped in lava (ie, moved into some but didn't die on the spot thanks to fire resistance), you could sink and ultimately die without ever taking another actual turn (typing ``i<space>'' repeatedly is an easy way to reproduce). [`didmove' was only being checked for the sinking deeper case and not for the decrement which ultimately leads to the fully sunk case.] On the other hand, if you could manage to start an occupation and avoid being interrupted, you would never sink while it was in progress. [Lava handling followed ``if (multi && occupation) { ...; continue; }''.] While testing some other code (lava vs slime, coming shortly) I ended up with the cursor sitting on the status line while the game was waiting for me to enter my next move. I don't really understand what's going on there, and moving the lava handling before bot() might have hidden that particular problem now by changing the point at which Slime will get taken off the status line, but this attempts to fix it anyway.
- Loading branch information
nethack.rankin
committed
Dec 1, 2006
1 parent
17f8482
commit 58a9bcf
Showing
5 changed files
with
36 additions
and
27 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
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