Fix vision in some cases with boulder falling into pool

We can't just unconditionally unblock vision for a location when a boulder
falls into a pool, because the location may also have a (poison) cloud on it.
This commit is contained in:
Pasi Kallinen
2025-01-06 19:46:35 +02:00
parent d807436c10
commit 4392f5fa4e
3 changed files with 13 additions and 2 deletions

View File

@@ -887,7 +887,17 @@ unblock_point(int x, int y)
gv.vision_full_recalc = 1;
}
/*==========================================================================*\
/* recalc if point should be blocked or unblocked */
void
recalc_block_point(coordxy x, coordxy y)
{
if (does_block(x, y, &levl[x][y]))
block_point(x, y);
else
unblock_point(x, y);
}
/*==========================================================================* \
: :
: Everything below this line uses (y,x) instead of (x,y) --- the :
: algorithms are faster if they are less recursive and can scan :