OSDN Git Service

ガラスの部屋の中心部分にCAVE_ICKYを付け忘れていたので修正.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 30 May 2004 22:29:07 +0000 (22:29 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 30 May 2004 22:29:07 +0000 (22:29 +0000)
src/rooms.c

index df90f70..2af9892 100644 (file)
@@ -6109,6 +6109,7 @@ static bool build_type15(void)
                                c_ptr = &cave[y][x];
                                place_inner_perm_grid(c_ptr);
                                c_ptr->feat = feat_permanent_glass_wall;
+                               cave[yval + ddy_ddd[dir1]][xval + ddx_ddd[dir1]].info |= (CAVE_ICKY);
                        }
 
                        /* Glass door */
@@ -6122,6 +6123,7 @@ static bool build_type15(void)
                        /* Place a potion */
                        get_obj_num_hook = kind_is_potion;
                        place_object(yval, xval, AM_NO_FIXED_ART);
+                       cave[yval][xval].info |= (CAVE_ICKY);
                }
                break;
 
@@ -6174,6 +6176,7 @@ static bool build_type15(void)
 
                        /* Place an object */
                        place_object(yval, xval, AM_NO_FIXED_ART);
+                       cave[yval][xval].info |= (CAVE_ICKY);
                }
                break;
 
@@ -6235,6 +6238,11 @@ static bool build_type15(void)
                                get_obj_num_hook = kind_is_potion;
                                place_object(yval + 1, xval, AM_NO_FIXED_ART);
                        }
+
+                       for (y = yval - 2; y <= yval + 2; y++)
+                               for (x = xval - 2; x <= xval + 2; x++)
+                                       cave[y][x].info |= (CAVE_ICKY);
+
                }
                break;
        }