Fix vision when xorn digs down on a wall

A xorn inside a wall using a wand of digging to dig down, the vision
was still blocked at that location.
This commit is contained in:
Pasi Kallinen
2025-01-06 20:11:35 +02:00
parent 4392f5fa4e
commit 274b15cd77
+2
View File
@@ -931,11 +931,13 @@ use_defensive(struct monst *mtmp)
surface(mtmp->mx, mtmp->my)); surface(mtmp->mx, mtmp->my));
} }
fill_pit(mtmp->mx, mtmp->my); fill_pit(mtmp->mx, mtmp->my);
recalc_block_point(mtmp->mx, mtmp->my);
return (mintrap(mtmp, FORCEBUNGLE) == Trap_Killed_Mon) ? 1 : 2; return (mintrap(mtmp, FORCEBUNGLE) == Trap_Killed_Mon) ? 1 : 2;
} }
t = maketrap(mtmp->mx, mtmp->my, HOLE); t = maketrap(mtmp->mx, mtmp->my, HOLE);
if (!t) if (!t)
return 2; return 2;
recalc_block_point(mtmp->mx, mtmp->my);
seetrap(t); seetrap(t);
if (vis) { if (vis) {
pline_mon(mtmp, "%s has made a hole in the %s.", Monnam(mtmp), pline_mon(mtmp, "%s has made a hole in the %s.", Monnam(mtmp),