Should see rusting next to you if underwater

You can see to the adjacent squares, if they're water and you're
underwater - show the item rusting there in that case.
This commit is contained in:
Pasi Kallinen
2022-02-12 11:54:47 +02:00
parent 91e2d3633e
commit bc456938d7

View File

@@ -184,7 +184,7 @@ erode_obj(
/* Is g.bhitpos correct here? Ugh. */
visobj = !victim && cansee(g.bhitpos.x, g.bhitpos.y)
&& (!is_pool(g.bhitpos.x, g.bhitpos.y)
|| (u.ux == g.bhitpos.x && u.uy == g.bhitpos.y && Underwater));
|| (next2u(g.bhitpos.x,g.bhitpos.y) && Underwater));
switch (type) {
case ERODE_BURN: