OSDN Git Service

set_floor_and_wall()をclear_cave()の中で呼んでいたのは処理時間の
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 30 May 2003 04:33:51 +0000 (04:33 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 30 May 2003 04:33:51 +0000 (04:33 +0000)
無駄だったので外に出した。

src/floors.c
src/generate.c
src/load.c

index 940099f..15bc436 100644 (file)
@@ -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;
index b672561..ee75dcc 100644 (file)
@@ -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++)
        {
index 78ab719..95e2f73 100644 (file)
@@ -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;
 }