OSDN Git Service

アリーナレベルであってもダンジョンの外壁だけはfill_type[]を使うように
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 28 May 2003 09:00:12 +0000 (09:00 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 28 May 2003 09:00:12 +0000 (09:00 +0000)
変更.

src/generate.c

index 3b0b890..ae8a0c5 100644 (file)
@@ -555,6 +555,20 @@ static bool cave_gen(void)
                                place_floor_grid(&cave[y][x]);
                        }
                }
+
+               /* Special boundary walls -- Top and bottom */
+               for (x = 0; x < cur_wid; x++)
+               {
+                       place_extra_grid(&cave[0][x]);
+                       place_extra_grid(&cave[cur_hgt - 1][x]);
+               }
+
+               /* Special boundary walls -- Left and right */
+               for (y = 1; y < (cur_hgt - 1); y++)
+               {
+                       place_extra_grid(&cave[y][0]);
+                       place_extra_grid(&cave[y][cur_wid - 1]);
+               }
        }
        else
        {