fix #H285 - hiders not hiding while hero is on another level (trunk only)

From a bug report, mimics
which were exposed at the time the hero leaves a level remain unhidden
upon return no matter how long the hero is away.  It was actually expected
behavior since the old level is stuck in stasis and hiders only hide when
it's their turn to move, but it was noticeably odd.  This makes unhidden
hiders attempt to hide when hero returns to a previous level or enters a
bones level.  I reorganized the monster handling in getlev() because the
relevant part was taking place before floor objects got restored, so
hidesunder() monsters had nothing to hide under at the time.
This commit is contained in:
nethack.rankin
2007-04-22 01:01:22 +00:00
parent a1a4a45033
commit 62a33d981a
4 changed files with 49 additions and 33 deletions

View File

@@ -220,6 +220,7 @@ when doppelgangers taking on new shape don't specifically pick nasty monster
salamanders can use green slime corpses to cure themselves of petrification
feedback about summoned monsters may use singular when it should use plural
rogue's backstab bonus doesn't apply for throwing attacks
hiding monsters who are unhidden when hero leaves a level can hide upon return
Platform- and/or Interface-Specific Fixes