U1041 - monster hidden under a corpse not displayed immediately when it rots
There was already code to ensure that if a hidden monster moved, it would no longer be hidden. However, if the monster is asleep or whatever under a rotting corpse, when the corpse rotted away, the monster would not immediately become detected. Add a check to the rot code before the newsym.
This commit is contained in:
12
src/dig.c
12
src/dig.c
@@ -1556,8 +1556,16 @@ long timeout; /* unused */
|
||||
}
|
||||
}
|
||||
rot_organic(arg, timeout);
|
||||
if (on_floor) newsym(x, y);
|
||||
else if (in_invent) update_inventory();
|
||||
if (on_floor) {
|
||||
struct monst *mtmp = m_at(x, y);
|
||||
|
||||
/* a hiding monster may be exposed */
|
||||
if (mtmp && !OBJ_AT(x, y) &&
|
||||
mtmp->mundetected && hides_under(mtmp->data)) {
|
||||
mtmp->mundetected = 0;
|
||||
}
|
||||
newsym(x, y);
|
||||
} else if (in_invent) update_inventory();
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
Reference in New Issue
Block a user