]> granicus.if.org Git - nethack/commit
Castle trap doors fix
authornethack.rankin <nethack.rankin>
Sun, 27 Apr 2003 10:32:55 +0000 (10:32 +0000)
committernethack.rankin <nethack.rankin>
Sun, 27 Apr 2003 10:32:55 +0000 (10:32 +0000)
commitde2c772a11a28af9ba29d3d150dc4fff74c5bcac
tree7a85115d7bbd835df6eee5cd2ea03a05eacbef8a
parent18ee5accfb736f12f5b47397fc906a9b3a171f6c
Castle trap doors fix

     Recently discussed in the newsgroup, and it sounded familiar so may
have been reported directly earlier:

  You fly through the trap door.  You fly down along the stairs.

when polymorphed into a flying creature or riding a flying steed.  It
only happens at the castle, and only happens because the go-down code is
explicitly setting the arrival point to be the Valley stairs.  That's how
the castle trap doors used to work as traps too, but they were changed to
dump you randomly near the stairs quite some time ago.  Fix it by making
intentional triggering work the same now; this also prevents the false
feedback (even if you happen to arrive on the stairs by coincidence).
doc/fixes34.2
src/do.c