]> granicus.if.org Git - nethack/commitdiff
B08018 - vision when breaking closed doors
authorcohrs <cohrs>
Wed, 21 Aug 2002 04:48:17 +0000 (04:48 +0000)
committercohrs <cohrs>
Wed, 21 Aug 2002 04:48:17 +0000 (04:48 +0000)
Do vision_recalc immediately when blasting a door so that all the
subsequent messages for the same blast hitting other things are all
evaluated with the same vision in effect.

src/lock.c

index 59be265381bb5ccf6615a75364aad7d5c05c8aa3..5f4995af7c95d1016252217182f097ba219bd0f6 100644 (file)
@@ -847,6 +847,8 @@ int x, y;
                }
                unblock_point(x,y);
                newsym(x,y);
+               /* force vision recalc before printing more messages */
+               if (vision_full_recalc) vision_recalc(0);
                loudness = 20;
            } else res = FALSE;
            break;