OSDN Git Service

NO_CAVEダンジョン(城)では廊下に岩石を出さないように変更.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 18 Oct 2003 15:47:48 +0000 (15:47 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 18 Oct 2003 15:47:48 +0000 (15:47 +0000)
src/generate.c

index 6c5fcc5..008eef9 100644 (file)
@@ -956,8 +956,8 @@ msg_format("
        /* Place some traps in the dungeon */
        alloc_object(ALLOC_SET_BOTH, ALLOC_TYP_TRAP, randint1(k));
 
-       /* Put some rubble in corridors */
-       alloc_object(ALLOC_SET_CORR, ALLOC_TYP_RUBBLE, randint1(k));
+       /* Put some rubble in corridors (except NO_CAVE dungeon (Castle)) */
+       if (!(d_info[dungeon_type].flags1 & DF1_NO_CAVE)) alloc_object(ALLOC_SET_CORR, ALLOC_TYP_RUBBLE, randint1(k));
 
        /* Mega Hack -- No object at first level of deeper dungeon */
        if (p_ptr->enter_dungeon && dun_level > 1)