OSDN Git Service

通常のセーブ/ロード時以外でc_ptr->mimicに0以外の値を代入する際に, 最
[hengbandforosx/hengbandosx.git] / src / rooms.c
index 817a754..87c8aeb 100644 (file)
@@ -5540,8 +5540,10 @@ static void build_type13(int by0, int bx0)
                }
        }
 
+       /* Pre-apply default mimic field */
+       cave[yval][xval].mimic = f_info[cave[yval][xval].feat].mimic;
+
        /* Place the wall open trap */
-       cave[yval][xval].mimic = cave[yval][xval].feat;
        cave[yval][xval].feat = FEAT_TRAP_OPEN;
 
        /* Prepare allocation table */
@@ -5716,7 +5718,7 @@ static void build_type14(int by0, int bx0)
 
        /* Place a special trap */
        c_ptr = &cave[rand_spread(yval, ysize/4)][rand_spread(xval, xsize/4)];
-       c_ptr->mimic = c_ptr->feat;
+       c_ptr->mimic = f_info[c_ptr->feat].mimic;
        c_ptr->feat = trap;
 
        /* Message */