]> granicus.if.org Git - nethack/commitdiff
non-monster kick target
authornethack.rankin <nethack.rankin>
Sun, 18 Mar 2007 02:14:59 +0000 (02:14 +0000)
committernethack.rankin <nethack.rankin>
Sun, 18 Mar 2007 02:14:59 +0000 (02:14 +0000)
     My "kicking off edge of map" patch on 2007/01/27 had a typo/braino
which caused messages--including death reason--which intended to say
"kicking <an object>" end up using "kicking something weird" instead.

src/dokick.c

index d620bf8e5617a06d74925fa55f5ee374b75fc7d3..fb90d1690688f31c9da1e1d1c935462989665ed7 100644 (file)
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)dokick.c   3.5     2007/01/26      */
+/*     SCCS Id: @(#)dokick.c   3.5     2007/03/17      */
 /* Copyright (c) Izchak Miller, Mike Stephenson, Steve Linhart, 1989. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -624,7 +624,7 @@ char *buf;
        const char *what;
 
        if (kickobj) what = killer_xname(kickobj);
-       if (maploc == &nowhere) what = "nothing";
+       else if (maploc == &nowhere) what = "nothing";
        else if (IS_DOOR(maploc->typ)) what = "a door";
        else if (IS_TREE(maploc->typ)) what = "a tree";
        else if (IS_STWALL(maploc->typ)) what = "a wall";