OSDN Git Service

view_unsafe_grids時に, 自分で歩いた床からは 'x' を消すように変更.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 3 May 2003 18:03:29 +0000 (18:03 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 3 May 2003 18:03:29 +0000 (18:03 +0000)
ただし, 光源なしもしくは盲目でトラップに掛かった場合は 'x' は消さない.

src/cmd1.c

index eff20c5..606d783 100644 (file)
@@ -4140,6 +4140,9 @@ msg_format("%s
                        p_ptr->update |= (PU_VIEW | PU_LITE | PU_FLOW | PU_MONSTERS | PU_MON_LITE);
                }
 
+               /* Remove "unsafe" flag */
+               if ((!p_ptr->blind && !no_lite()) || !is_trap(c_ptr->feat)) c_ptr->info &= ~(CAVE_UNSAFE);
+
                /* Redraw new spot */
                lite_spot(py, px);