]> granicus.if.org Git - nethack/commitdiff
kicking empty space not bars
authornethack.allison <nethack.allison>
Sat, 16 Aug 2003 21:18:30 +0000 (21:18 +0000)
committernethack.allison <nethack.allison>
Sat, 16 Aug 2003 21:18:30 +0000 (21:18 +0000)
> When you kick iron bars, it says "you kick empty space". Maybe
> this should be something more like "you hurt your foot on the
> iron bars" or "the bars resonate with your hit". Something other
> than "empty space". [<email deleted>]

doc/fixes34.2
src/dokick.c

index 3b36754464888821486e3c2a88f6ef92e12d362c..3f76633128a5d43b3e2f41dc68afe6d2688cc157 100644 (file)
@@ -126,6 +126,7 @@ do not let an attached iron ball drag the hero through a location that the hero
 hero's appearance should change immediately after mimicing completes
 avoid some uses of "it" in killer messages
 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"
 
 
 Platform- and/or Interface-Specific Fixes
index 7c146256d614665687bf134c337584f327d92597..751fe0520f6fed8a1867b77b3ae9ab2a83866358 100644 (file)
@@ -879,7 +879,7 @@ dokick()
                    exercise(A_DEX, TRUE);
                    return(1);
                }
-               if(IS_GRAVE(maploc->typ))
+               if(IS_GRAVE(maploc->typ) || maploc->typ == IRONBARS)
                    goto ouch;
                if(IS_TREE(maploc->typ)) {
                    struct obj *treefruit;