Entering special room, wake up only that room

... instead of doing a level-wide wake-up.

Fixes #429
This commit is contained in:
Pasi Kallinen
2021-05-05 20:32:47 +03:00
parent e8765fb2b8
commit 9fa9f00f8a
2 changed files with 5 additions and 0 deletions

View File

@@ -495,6 +495,8 @@ change "killed by <a foo>, while {paralyzed|frozen} by <a foo>" into
hero's helplessness
"It looks very angry" would be given if a hero wielding Excalibur or Demonbane
offended an unseen demon lord
Entering a special room, only wake up the monsters in that room instead of
doing a level-wide wake-up
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository

View File

@@ -2650,6 +2650,9 @@ check_special_room(boolean newlev)
for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) {
if (DEADMONSTER(mtmp))
continue;
if (!isok(mtmp->mx,mtmp->my)
|| roomno != levl[mtmp->mx][mtmp->my].roomno)
continue;
if (!Stealth && !rn2(3))
mtmp->msleeping = 0;
}