]> granicus.if.org Git - nethack/commit
#ride workaround
authornethack.rankin <nethack.rankin>
Fri, 10 May 2002 01:50:22 +0000 (01:50 +0000)
committernethack.rankin <nethack.rankin>
Fri, 10 May 2002 01:50:22 +0000 (01:50 +0000)
commit847b037d5841f403788ec9d06366588fb74fd0ca
tree057f1af69f9cf3dbed3b006594a8189550e6ea3f
parente6f9748511e5cc2b7d7dd57c5f7ecdacbe5fa7ca
#ride workaround

From the newsgroup:
> Apparent bug or weird-seeming feature:
> If you try to mount a horse that is already in a pit,
> you get the message "You lead the poor <foo> into a pit!"

     I checked into fixing this properly (you mount the steed and
then shared its trapped status without actively retriggering the
trap in the process), but the trap code is too convoluted to do
that cleanly.  So this "fix" just makes mounting attempts fail if
the steed is trapped.

     (This diff is mostly whitespace cleanup.)
doc/fixes34.1
src/steed.c