MUSE for branch stairs

Fix another item in the "A few bugs" mail.  Monsters who wanted to flee
weren't able to use 'sstairs' (extra stairway leading to different branch
of dungeon) due to a logic error in the find_defensive() choices.
  if (terrain==STAIR) {
  } else if (terrain==LADDER) {
  } else if (x==sstairs.sx && y==sstairs.sy) {
  } else { /* check traps */
  }
wouldn't find 'sstairs' because they have terrain type STAIRS.  (Also,
the sstairs check wasn't screening out immobile monsters, but that bug
didn't have a chance to manifest.)

There's a bunch of reformatting, and some code re-organization to improve
other formatting, and some additional logic fixes.
This commit is contained in:
PatR
2015-10-07 16:32:10 -07:00
parent ea0729c5ca
commit b2dd4bb410
2 changed files with 224 additions and 200 deletions
+2
View File
@@ -922,6 +922,8 @@ add an option to prevent omitting the uncursed status from inventory
show prices when walking over the shop merchandise
you shouldn't see Sting glow light blue if you're blind
when jumping, bumping into something is noisy
flesh golems hit by electricity healed by wrong amount
fleeing monsters couldn't use stairs that lead to different dungeon branch
Platform- and/or Interface-Specific Fixes