OSDN Git Service

[Refactor] #37353 cave_type 構造体を grid_type に改名。 / Rename cave_type structure to grid_...
[hengband/hengband.git] / src / view-mainwindow.c
index 55a60ab..87ee7ff 100644 (file)
@@ -160,9 +160,9 @@ concptr map_name(void)
        else if (p_ptr->inside_battle)
                return _("闘技場", "Monster Arena");
        else if (!dun_level && p_ptr->town_num)
-               return town[p_ptr->town_num].name;
+               return town_info[p_ptr->town_num].name;
        else
-               return d_name+d_info[dungeon_idx].name;
+               return d_name+d_info[p_ptr->dungeon_idx].name;
 }
 
 /*!
@@ -936,7 +936,7 @@ static void prt_depth(void)
        {
                strcpy(depths, _("地上", "Surf."));
        }
-       else if (p_ptr->inside_quest && !dungeon_idx)
+       else if (p_ptr->inside_quest && !p_ptr->dungeon_idx)
        {
                strcpy(depths, _("地上", "Quest"));
        }
@@ -1695,7 +1695,7 @@ void print_monster_list(TERM_LEN x, TERM_LEN y, TERM_LEN max_lines){
        int i;
 
        for(i=0;i<temp_n;i++){
-               cave_type* c_ptr = &cave[temp_y[i]][temp_x[i]];
+               grid_type* c_ptr = &cave[temp_y[i]][temp_x[i]];
                if(!c_ptr->m_idx || !m_list[c_ptr->m_idx].ml)continue;//no mons or cannot look
                m_ptr = &m_list[c_ptr->m_idx];
                if(is_pet(m_ptr))continue;//pet