From: Pasi Kallinen Date: Fri, 8 Jul 2022 10:39:19 +0000 (+0300) Subject: Fix monster hiding under candle burning away X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4bd9db98c736d5bb8f7f196fa8d48404defefbe;p=nethack Fix monster hiding under candle burning away Reveal the monster when the candle it was hiding under burned away. --- diff --git a/src/timeout.c b/src/timeout.c index 998e1388f..378785e0f 100644 --- a/src/timeout.c +++ b/src/timeout.c @@ -1462,11 +1462,15 @@ burn_object(anything *arg, long timeout) if (carried(obj)) { useupall(obj); } else { + boolean onfloor = (obj->where == OBJ_FLOOR); + /* clear migrating obj's destination code so obfree won't think this item is worn */ if (obj->where == OBJ_MIGRATING) obj->owornmask = 0L; obj_extract_self(obj); + if (onfloor) + maybe_unhide_at(x, y); obfree(obj, (struct obj *) 0); } obj = (struct obj *) 0;