From f3bcec6c5323cbbaf688b9c10345a9035f8a4651 Mon Sep 17 00:00:00 2001 From: PatR Date: Fri, 1 Dec 2023 04:52:21 -0800 Subject: [PATCH] generic objects bit u_on_newpos() bit: player can't see the map while swallowed so hero can't see objects on the map, hence shouldn't gain more info about any generic objects if engulfer moves closer to some. At the moment engulfer movement is manipulating directly rather than going through u_on_newpos(), but that's about to change. Otherwise a clipped map doesn't get updated properly until the hero is eventually expelled. --- src/dungeon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dungeon.c b/src/dungeon.c index 3f193dc65..efbbcda94 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -1500,7 +1500,7 @@ u_on_newpos(coordxy x, coordxy y) stale values from previous level */ if (!on_level(&u.uz, &u.uz0)) u.ux0 = u.ux, u.uy0 = u.uy; - else if (!Blind && !Hallucination) + else if (!Blind && !Hallucination && !u.uswallow) /* still on same level; might have come close enough to generic object(s) to redisplay them as specific objects */ see_nearby_objects();