OSDN Git Service

隠しドアをc_ptr->mimicで隠す時に、f_info[].mimicを先に反映させるようにした。
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 29 Jul 2003 15:41:38 +0000 (15:41 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 29 Jul 2003 15:41:38 +0000 (15:41 +0000)
したがって地形を表示する時にはf_info[c_ptr->mimic].mimicではなく、
c_ptr->mimicを見れば十分。

src/grid.c

index 064cf95..e5dd7d9 100644 (file)
@@ -145,7 +145,7 @@ void place_random_door(int y, int x, bool room)
                place_closed_door(y, x);
 
                /* Hide. If on the edge of room, use outer wall. */
-               c_ptr->mimic = room ? feat_wall_outer : fill_type[randint0(100)];
+               c_ptr->mimic = f_info[room ? feat_wall_outer : fill_type[randint0(100)]].mimic;
 
                /* Floor type terrain cannot hide a door */
                if (feat_floor(c_ptr->mimic))