From: nethack.allison Date: Sat, 16 Aug 2003 21:18:30 +0000 (+0000) Subject: kicking empty space not bars X-Git-Tag: MOVE2GIT~1850 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c654b2fc02ff5d399434f5e77fde174df475f05b;p=nethack kicking empty space not bars > 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". [] --- diff --git a/doc/fixes34.2 b/doc/fixes34.2 index 3b3675446..3f7663312 100644 --- a/doc/fixes34.2 +++ b/doc/fixes34.2 @@ -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 diff --git a/src/dokick.c b/src/dokick.c index 7c146256d..751fe0520 100644 --- a/src/dokick.c +++ b/src/dokick.c @@ -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;