From 2ce432657cc9d204bb4a98e1396f28c5cea14927 Mon Sep 17 00:00:00 2001 From: disperse Date: Mon, 6 May 2024 17:49:27 -0400 Subject: [PATCH] fix shop automatic annotation for #overview [PR #1243. Cherry picked with new commit log message. PatR] Fixes issue where room_discovered was never called for shops unless #overview was called while inside the shop, fixes #1241. Issue #1241 reported by mark-mcknight-oncorps. Triggered by commit e4026d55fb546ff9c62de0393e5be353b7efbdff last December: Lazy evaluation of overview info. Closes #1243 Closes #1241 --- src/hack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hack.c b/src/hack.c index 082635118..1432a06d9 100644 --- a/src/hack.c +++ b/src/hack.c @@ -3466,7 +3466,7 @@ check_special_room(boolean newlev) intemple(roomno + ROOMOFFSET); /*FALLTHRU*/ default: - msg_given = (rt == TEMPLE); + msg_given = (rt == TEMPLE || rt >= SHOPBASE); rt = 0; break; }