fix C343-22 - #untrap while levitating (trunk only)

Revise untrap() to handle being unable to reach the floor.  That
whole routine is a mess and should probably be rewritten.

     Included at no extra charge:  #untrap didn't check whether player
picked a spot off the edge of the map so could go out of array bounds.
This commit is contained in:
nethack.rankin
2007-05-27 03:07:24 +00:00
parent bc4ccd0f44
commit e8012786d0
2 changed files with 59 additions and 33 deletions
+1
View File
@@ -233,6 +233,7 @@ some monsters can't be strangled; self-polymorph can stop/restart strangulation
re-adjust gem generation probabilities when revisiting existing dungeon levels
kick evasion shouldn't move monsters through walls
kick evasion and jousting/staggering blows shouldn't move grid bugs diagonally
#untrap didn't check whether hero could reach the ground
Platform- and/or Interface-Specific Fixes