OSDN Git Service

los(py, px, ...)をplayer_has_los_bold()で置き換えられる部分について置
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 17 Dec 2003 01:28:20 +0000 (01:28 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 17 Dec 2003 01:28:20 +0000 (01:28 +0000)
き換えた.

src/mane.c
src/melee2.c
src/mind.c
src/mspells2.c
src/mspells3.c

index ed64d52..9e22dfe 100644 (file)
@@ -315,7 +315,7 @@ msg_print("
 
                if (!target_set(TARGET_KILL)) return FALSE;
                if (!cave[target_row][target_col].m_idx) break;
-               if (!los(py, px, target_row, target_col)) break;
+               if (!player_has_los_bold(target_row, target_col)) break;
                if (!projectable(py, px, target_row, target_col)) break;
                m_ptr = &m_list[cave[target_row][target_col].m_idx];
                monster_desc(m_name, m_ptr, 0);
@@ -1016,7 +1016,7 @@ msg_format("%s
                if (!target_set(TARGET_KILL)) return FALSE;
                target_m_idx = cave[target_row][target_col].m_idx;
                if (!target_m_idx) break;
-               if (!los(py, px, target_row, target_col)) break;
+               if (!player_has_los_bold(target_row, target_col)) break;
                if (!projectable(py, px, target_row, target_col)) break;
                m_ptr = &m_list[target_m_idx];
                r_ptr = &r_info[m_ptr->r_idx];
index 4485561..4cfc14c 100644 (file)
@@ -3871,7 +3871,7 @@ bool process_the_world(int num, int who, bool vs_player)
        p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
 
        world_monster = 0;
-       if (vs_player || (los(py, px, m_ptr->fy, m_ptr->fx) && projectable(py, px, m_ptr->fy, m_ptr->fx)))
+       if (vs_player || (player_has_los_bold(m_ptr->fy, m_ptr->fx) && projectable(py, px, m_ptr->fy, m_ptr->fx)))
        {
 #ifdef JP
                msg_print("¡Ö»þ¤ÏÆ°¤­¤À¤¹¡Ä¡×");
index 98f2d78..0121ba3 100644 (file)
@@ -1171,7 +1171,7 @@ static bool cast_force_spell(int spell)
 
                if (!target_set(TARGET_KILL)) return FALSE;
                if (!cave[target_row][target_col].m_idx) break;
-               if (!los(py, px, target_row, target_col)) break;
+               if (!player_has_los_bold(target_row, target_col)) break;
                if (!projectable(py, px, target_row, target_col)) break;
                m_ptr = &m_list[cave[target_row][target_col].m_idx];
                monster_desc(m_name, m_ptr, 0);
index f10090c..9a7e066 100644 (file)
@@ -3120,7 +3120,7 @@ bool monst_spell_monst(int m_idx)
                if(m_ptr->r_idx = MON_DIO) who == 1;
                else if(m_ptr->r_idx = MON_WONG) who == 3;
                dam = who;
-               if(!process_the_world(randint1(2)+2, who, los(py, px, m_ptr->fy, m_ptr->fx))) return (FALSE);
+               if(!process_the_world(randint1(2)+2, who, player_has_los_bold(m_ptr->fy, m_ptr->fx))) return (FALSE);
 #endif
                return FALSE;
 
index 6d4e519..a5b4b76 100644 (file)
@@ -729,7 +729,7 @@ msg_print("
 
                if (!target_set(TARGET_KILL)) return FALSE;
                if (!cave[target_row][target_col].m_idx) break;
-               if (!los(py, px, target_row, target_col)) break;
+               if (!player_has_los_bold(target_row, target_col)) break;
                if (!projectable(py, px, target_row, target_col)) break;
                m_ptr = &m_list[cave[target_row][target_col].m_idx];
                monster_desc(m_name, m_ptr, 0);
@@ -1443,7 +1443,7 @@ msg_format("%s
                if (!target_set(TARGET_KILL)) return FALSE;
                target_m_idx = cave[target_row][target_col].m_idx;
                if (!target_m_idx) break;
-               if (!los(py, px, target_row, target_col)) break;
+               if (!player_has_los_bold(target_row, target_col)) break;
                if (!projectable(py, px, target_row, target_col)) break;
                m_ptr = &m_list[target_m_idx];
                r_ptr = &r_info[m_ptr->r_idx];