Seems like the previous stuff needs to be updated for all detection effects. For example, you can cast Detect Doors to reveal some doors, then a monster destroys one of them (knowledge is not updated), but when casting Detect Doors again you still see the now destroyed door. At this point, the door should be forgotten (knowledge should be updated).
Something like this:
Something like this:
Code:
/* Detect doors */ if (square_isdoor(cave, y, x)) { square_memorize(cave, y, x); /*square_light_spot(cave, y, x);*/ doors = TRUE; } /* Forget unknown doors in the mapping area */ if (square_isdoor(cave_k, y, x) && square_isnotknown(cave, y, x)) square_forget(cave, y, x) ... /* Fully update the visuals */ /* Redraw map, ... */
Comment