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". [<email deleted>]
This commit is contained in:
nethack.allison
2003-08-16 21:18:30 +00:00
parent 67bdc8bca2
commit c654b2fc02
2 changed files with 2 additions and 1 deletions

View 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

View 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;