OSDN Git Service

鏡やルーンのフラグCAVE_OBJECTが間違って残る事のないように、
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 5 Nov 2002 09:29:17 +0000 (09:29 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 5 Nov 2002 09:29:17 +0000 (09:29 +0000)
cave_set_feat()の中で削除するようにした。

src/cave.c

index 7a530d9..83a03d6 100644 (file)
@@ -4845,6 +4845,9 @@ void cave_set_feat(int y, int x, int feat)
         /* Clear mimic type */
         c_ptr->mimic = 0;
 
+        /* Remove flag for mirror/glyph */
+       c_ptr->info &= ~(CAVE_OBJECT);
+
        /* Change the feature */
        c_ptr->feat = feat;