OSDN Git Service

Save damages dealt by player for each monster. (Do not use yet)
[hengband/hengband.git] / src / generate.c
index 78feddb..0f6b93d 100644 (file)
@@ -1188,8 +1188,17 @@ static void arena_gen(void)
 
        build_arena();
 
-       place_monster_aux(0, py + 5, px, arena_info[p_ptr->arena_number].r_idx,
-           (PM_NO_KAGE | PM_NO_PET));
+       if(!place_monster_aux(0, py + 5, px, arena_info[p_ptr->arena_number].r_idx, (PM_NO_KAGE | PM_NO_PET)))
+       {
+               p_ptr->exit_bldg = TRUE;
+               p_ptr->arena_number++;
+#ifdef JP
+               msg_print("Áê¼ê¤Ï·ç¾ì¤·¤¿¡£¤¢¤Ê¤¿¤ÎÉÔÀᄀ¤À¡£");
+#else
+               msg_print("The enemy is unable appear. You won by default.");
+#endif
+       }
+
 }
 
 
@@ -1458,14 +1467,14 @@ void clear_cave(void)
        int x, y, i;
 
        /* Very simplified version of wipe_o_list() */
-       C_WIPE(o_list, o_max, object_type);
+       (void)C_WIPE(o_list, o_max, object_type);
        o_max = 1;
        o_cnt = 0;
 
        /* Very simplified version of wipe_m_list() */
        for (i = 1; i < max_r_idx; i++)
                r_info[i].cur_num = 0;
-       C_WIPE(m_list, m_max, monster_type);
+       (void)C_WIPE(m_list, m_max, monster_type);
        m_max = 1;
        m_cnt = 0;
        for (i = 0; i < MAX_MTIMED; i++) mproc_max[i] = 0;