OSDN Git Service

[Refactor] #38993 dun_level を floor_type に取り込む。 / Move dun_level to floor_type structure.
[hengband/hengband.git] / src / rooms-fractal.c
index 22e991e..54ed95a 100644 (file)
@@ -40,7 +40,7 @@ bool build_type9(void)
        light = done = FALSE;
        room = TRUE;
 
-       if ((dun_level <= randint1(25)) && !(d_info[p_ptr->dungeon_idx].flags1 & DF1_DARKNESS)) light = TRUE;
+       if ((current_floor_ptr->dun_level <= randint1(25)) && !(d_info[p_ptr->dungeon_idx].flags1 & DF1_DARKNESS)) light = TRUE;
 
        while (!done)
        {