]> granicus.if.org Git - nethack/commitdiff
Fix out-of-map condition in buzz
authorPasi Kallinen <paxed@alt.org>
Sat, 25 Apr 2015 03:24:36 +0000 (06:24 +0300)
committerPasi Kallinen <paxed@alt.org>
Sat, 25 Apr 2015 03:24:43 +0000 (06:24 +0300)
src/zap.c

index 89438b6c24a5c313541704e3b64ef9e4b183ef2a..bec35c8dc80a3a2719ff8996f68b92c3055c9496 100644 (file)
--- a/src/zap.c
+++ b/src/zap.c
@@ -3749,7 +3749,7 @@ register int dx,dy;
                    unmap_object(sx, sy);
                    newsym(sx, sy);
                }
-               if(ZAP_POS(lev->typ) || cansee(lsx,lsy))
+               if(ZAP_POS(lev->typ) || (isok(lsx,lsy) && cansee(lsx,lsy)))
                    tmp_at(sx,sy);
                delay_output(); /* wait a little */
            }