]> granicus.if.org Git - nethack/commitdiff
Fix vault guard leaving monsters encased in stone
authorPasi Kallinen <paxed@alt.org>
Fri, 13 Mar 2020 17:28:56 +0000 (19:28 +0200)
committerPasi Kallinen <paxed@alt.org>
Fri, 13 Mar 2020 17:32:47 +0000 (19:32 +0200)
For some reason the vault guard fake corridor code checked
if the hero was outside the corridor before removing monsters.
But the vault end of the corridor usually gets sealed off
even while you're still in the corridor. This left monsters
stuck in solid rock.

doc/fixes37.0
src/vault.c

index e4bbf7ace0e570446190c3889ad5e93709f1db95..8e0d72f85861e4aa969d4ed24da41b10eb8ab476 100644 (file)
@@ -76,6 +76,7 @@ when punished, involuntarily teleporting and landing within chain range of
 inventory cursing caused by "this water's no good" effect when drinking from
        a fountain didn't update persistent inventory window
 fix priest created inside temple wall
+fix vault guard occasionally encasing monsters in stone
 
 
 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
index 2f0c6a86cdb299623500aaa9ce6fc4ea86714c14..2cf8d1dcb302722a8eb0f8f7ae006ff537b04c8b 100644 (file)
@@ -76,7 +76,7 @@ boolean forceshow;
         if ((mtmp = m_at(fcx, fcy)) != 0) {
             if (mtmp->isgd) {
                 return FALSE;
-            } else if (!in_fcorridor(grd, u.ux, u.uy)) {
+            } else {
                 if (mtmp->mtame)
                     yelp(mtmp);
                 if (!rloc(mtmp, TRUE))