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:
12
src/vision.c
12
src/vision.c
@@ -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 :
|
||||
|
||||
Reference in New Issue
Block a user