From 9b82b72c6ef41d74005006c9d0c78b583f8e562c Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 7 Oct 2017 16:30:17 +0300 Subject: [PATCH] Unmap invisible glyphs when cleaving and no monster present --- src/uhitm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/uhitm.c b/src/uhitm.c index b4d272187..97e49dbca 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -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,