]> granicus.if.org Git - nethack/commitdiff
Unmap invisible glyphs when cleaving and no monster present
authorPasi Kallinen <paxed@alt.org>
Sat, 7 Oct 2017 13:30:17 +0000 (16:30 +0300)
committerPasi Kallinen <paxed@alt.org>
Sat, 7 Oct 2017 13:30:17 +0000 (16:30 +0300)
src/uhitm.c

index b4d2721879dd37a1a475be502f01fe45cc9c21b7..97e49dbca31171aacde300c34923b81ba06b5f6b 100644 (file)
@@ -529,8 +529,10 @@ struct attack *uattk;
         mtmp = NULL;
         if (isok(x + xdir[i], y + ydir[i]))
             mtmp = m_at(x + xdir[i], y + ydir[i]);
-        if (!mtmp)
+        if (!mtmp) {
+            (void) unmap_invisible(x + xdir[i], y + ydir[i]);
             continue;
+        }
 
 
         tmp = find_roll_to_hit(mtmp, uattk->aatyp, uwep,