]> granicus.if.org Git - nethack/commitdiff
webbing over stairs
authorcohrs <cohrs>
Thu, 12 Jun 2003 03:32:58 +0000 (03:32 +0000)
committercohrs <cohrs>
Thu, 12 Jun 2003 03:32:58 +0000 (03:32 +0000)
Due to limitations in some interface's display capabilities, don't let
polymorphed players web over stairs or ladders.  As a side effect, this
side-steps missing checks for webs when going up or down stairs and ladders.

doc/fixes34.2
src/polyself.c

index 7738c4e4a855583d8578942dcedcd70850cf199b..338b3443d1059cd99348c5faebb5112b78d55755 100644 (file)
@@ -93,6 +93,7 @@ options for font_size for map, menu, message, status, and text all had the
 when dismounting by choice and unimpaired, try not to land in a known trap
 when jousting a pudding into a polymorh trap, it was possible to end up
        with two of the new type of monster
+don't allow polymorphed player to web over the stairs
 
 
 Platform- and/or Interface-Specific Fixes
index b458978637200921f75d1b3c28e99e134857da3e..4590fe7a7f17c83157484c201c0cb0bdd832af5e 100644 (file)
@@ -891,6 +891,13 @@ dospinweb()
                default:
                        impossible("Webbing over trap type %d?", ttmp->ttyp);
                        return(0);
+               }
+       else if (On_stairs(u.ux, u.uy)) {
+           /* cop out: don't let them hide the stairs */
+           Your("web fails to impede access to the %s.",
+                (levl[u.ux][u.uy].typ == STAIRS) ? "stairs" : "ladder");
+           return(1);
+                
        }
        ttmp = maketrap(u.ux, u.uy, WEB);
        if (ttmp) {