Unmap invisible glyphs when cleaving and no monster present

This commit is contained in:
Pasi Kallinen
2017-10-07 16:30:17 +03:00
parent 4b7aea0eac
commit 9b82b72c6e
+3 -1
View File
@@ -529,8 +529,10 @@ struct attack *uattk;
mtmp = NULL; mtmp = NULL;
if (isok(x + xdir[i], y + ydir[i])) if (isok(x + xdir[i], y + ydir[i]))
mtmp = m_at(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; continue;
}
tmp = find_roll_to_hit(mtmp, uattk->aatyp, uwep, tmp = find_roll_to_hit(mtmp, uattk->aatyp, uwep,