]> granicus.if.org Git - nethack/commit
fix #2382 - temp Dex loss becomes permanent when dismounting
authornethack.rankin <nethack.rankin>
Sat, 16 Jul 2011 03:41:46 +0000 (03:41 +0000)
committernethack.rankin <nethack.rankin>
Sat, 16 Jul 2011 03:41:46 +0000 (03:41 +0000)
commitedaa9440b7884ee889a0b456e69c1e6f6274d279
treea6fe19b40ee7cb0faf97e09e71cddf0ebba818c4
parent6a53009069dd2b474a288c9b2cc1ca8b364ceb13
fix #2382 - temp Dex loss becomes permanent when dismounting

     From a bug report, if you dismount
from a steed whose legs are wounded, you won't recover the point of
dexterity which was removed when they becme injured.  He noticed the
case where the steed had just died, but it happens for voluntary
dismount too (actually any dismount except one which wounds the hero's
legs in the process:  DISMOUNT_THROWN or DISMOUNT_FELL).

     It seems rather odd that the hero temporarily loses Dex when the
steed becomes injured, but I haven't changed that.
doc/fixes34.4
src/do.c
src/steed.c