U592 - stuck in the floor

Digging a pit in the location where you're stuck should always free you.
This would not occur if you used a wand of digging to do the digging,
especially if you did so while levitating.
This commit is contained in:
cohrs
2003-08-18 20:14:18 +00:00
parent 82e8dd3247
commit f97f7a0618
2 changed files with 5 additions and 2 deletions

View File

@@ -129,6 +129,7 @@ avoid "singular of null?" warning for info lookup of obscure user input
there was no check for iron bars in dokick() so it defaulted to "empty space"
if you couldn't see the rat created in a sink for some reason other than
blindness, you would get "Eek there's it in the sink."
digging a pit while stuck in the floor should always free the player
Platform- and/or Interface-Specific Fixes

View File

@@ -492,8 +492,10 @@ int ttyp;
boolean at_u = (x == u.ux) && (y == u.uy);
boolean wont_fall = Levitation || Flying;
if (u.utrap && u.utraptype == TT_BURIEDBALL)
buried_ball_to_punishment();
if (u.utrap) {
if (u.utraptype == TT_BURIEDBALL) buried_ball_to_punishment();
else if (u.utraptype == TT_INFLOOR) u.utrap = 0;
}
/* these furniture checks were in dighole(), but wand
breaking bypasses that routine and calls us directly */