From d036116deec724b524615e6bf0a97acea6e87430 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 6 May 2023 19:48:08 +0300 Subject: [PATCH] Fix hiding under nonexistent obj Zapping a wand of teleportation at a location with object and a monster hiding under it, but with the level full of monsters, the monster would stay hidden even when the object was moved. --- src/zap.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/zap.c b/src/zap.c index 1d7485dba..54d011315 100644 --- a/src/zap.c +++ b/src/zap.c @@ -2210,7 +2210,12 @@ bhito(struct obj *obj, struct obj *otmp) break; case WAN_TELEPORTATION: case SPE_TELEPORT_AWAY: - (void) rloco(obj); + { + coordxy ox = obj->ox, oy = obj->oy; + + (void) rloco(obj); + maybe_unhide_at(ox, oy); + } break; case WAN_MAKE_INVISIBLE: break;