OSDN Git Service

[Refactor] #38844 MFLAG_TEMP to MFLAG_LOS.
authordeskull <deskull@users.sourceforge.jp>
Sun, 17 Mar 2019 06:04:29 +0000 (15:04 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sun, 17 Mar 2019 06:04:29 +0000 (15:04 +0900)
src/spells2.c
src/types.h

index ea7382b..bf8dad3 100644 (file)
@@ -787,7 +787,7 @@ bool project_all_los(EFFECT_ID typ, HIT_POINT dam)
                if (!player_has_los_bold(y, x) || !projectable(p_ptr->y, p_ptr->x, y, x)) continue;
 
                /* Mark the monster */
-               m_ptr->mflag |= (MFLAG_TEMP);
+               m_ptr->mflag |= (MFLAG_LOS);
        }
 
        /* Affect all marked monsters */
@@ -796,10 +796,10 @@ bool project_all_los(EFFECT_ID typ, HIT_POINT dam)
                monster_type *m_ptr = &current_floor_ptr->m_list[i];
 
                /* Skip unmarked monsters */
-               if (!(m_ptr->mflag & (MFLAG_TEMP))) continue;
+               if (!(m_ptr->mflag & (MFLAG_LOS))) continue;
 
                /* Remove mark */
-               m_ptr->mflag &= ~(MFLAG_TEMP);
+               m_ptr->mflag &= ~(MFLAG_LOS);
 
                y = m_ptr->fy;
                x = m_ptr->fx;
index a8e73b6..12fdcb4 100644 (file)
@@ -608,7 +608,7 @@ struct monster_type
 
        BIT_FLAGS8 mflag;       /* Extra monster flags */
        #define MFLAG_VIEW      0x01    /* Monster is in line of sight */
-       #define MFLAG_TEMP      0x02    /* Monster is marked for project_all_los() */
+       #define MFLAG_LOS       0x02    /* Monster is marked for project_all_los() */
        #define MFLAG_XXX2      0x04    /* (unused) */
        #define MFLAG_XXX3      0x08    /* (unused) */
        #define MFLAG_BORN      0x10    /* Monster is still being born */