From: Pasi Kallinen Date: Sat, 12 Feb 2022 09:54:47 +0000 (+0200) Subject: Should see rusting next to you if underwater X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc456938d7ef7fbf1e2d9e8e28f3243347260f14;p=nethack 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. --- diff --git a/src/trap.c b/src/trap.c index 2cce9d548..2d96ff044 100644 --- a/src/trap.c +++ b/src/trap.c @@ -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: