]> granicus.if.org Git - nethack/commit
MUSE for branch stairs
authorPatR <rankin@nethack.org>
Wed, 7 Oct 2015 23:32:10 +0000 (16:32 -0700)
committerPatR <rankin@nethack.org>
Wed, 7 Oct 2015 23:32:10 +0000 (16:32 -0700)
commitb2dd4bb410c62c391a5725391b2f9d717226795e
treeafcdd78c9fe920b9a3fa333592045510ad5456af
parentea0729c5cadf0a0aa5dc2835ad229feee9e6382a
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.
doc/fixes36.0
src/muse.c