From 5c4fccd3c0082208bc26e99a923115f98dfaefcf Mon Sep 17 00:00:00 2001 From: mogami Date: Fri, 30 May 2003 04:33:51 +0000 Subject: [PATCH] =?utf8?q?set=5Ffloor=5Fand=5Fwall()=E3=82=92clear=5Fcave(?= =?utf8?q?)=E3=81=AE=E4=B8=AD=E3=81=A7=E5=91=BC=E3=82=93=E3=81=A7=E3=81=84?= =?utf8?q?=E3=81=9F=E3=81=AE=E3=81=AF=E5=87=A6=E7=90=86=E6=99=82=E9=96=93?= =?utf8?q?=E3=81=AE=20=E7=84=A1=E9=A7=84=E3=81=A0=E3=81=A3=E3=81=9F?= =?utf8?q?=E3=81=AE=E3=81=A7=E5=A4=96=E3=81=AB=E5=87=BA=E3=81=97=E3=81=9F?= =?utf8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/floors.c | 3 +++ src/generate.c | 6 +++--- src/load.c | 3 --- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/floors.c b/src/floors.c index 940099f75..15bc4361f 100644 --- a/src/floors.c +++ b/src/floors.c @@ -309,6 +309,9 @@ static void build_dead_end(void) /* Clear and empty the cave */ clear_cave(); + /* Fill the arrays of floors and walls in the good proportions */ + set_floor_and_wall(0); + /* Smallest area */ cur_hgt = SCREEN_HGT; cur_wid = SCREEN_WID; diff --git a/src/generate.c b/src/generate.c index b672561d9..ee75dcced 100644 --- a/src/generate.c +++ b/src/generate.c @@ -1568,9 +1568,6 @@ void clear_cave(void) /* Nothing good here yet */ rating = 0; - - /* Fill the arrays of floors and walls in the good proportions */ - set_floor_and_wall(0); } @@ -1585,6 +1582,9 @@ void generate_cave(void) { int num; + /* Fill the arrays of floors and walls in the good proportions */ + set_floor_and_wall(dungeon_type); + /* Generate */ for (num = 0; TRUE; num++) { diff --git a/src/load.c b/src/load.c index 78ab71946..95e2f7333 100644 --- a/src/load.c +++ b/src/load.c @@ -2736,9 +2736,6 @@ static errr rd_saved_floor(saved_floor_type *sf_ptr) real_r_ptr(m_ptr)->cur_num++; } - /* Fill the arrays of floors and walls in the good proportions */ - set_floor_and_wall(dungeon_type); - /* Success */ return 0; } -- 2.11.0