Changeset 1439 for trunk

Show
Ignore:
Timestamp:
06/13/09 13:18:54 (9 months ago)
Author:
magnate
Message:

Set MFLAG_VIEW when a monster detected by ESP is in LOS, fixing #875

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/monster/monster2.c

    r1438 r1439  
    619619                 
    620620                /* Check for LOS */ 
    621                 if (player_can_see_bold(m_ptr->fy, m_ptr->fx)) 
     621                if (m_ptr->mflag & (MFLAG_VIEW)) 
    622622                { 
    623623                        /* Increment the total number of in-LOS monsters */ 
     
    12381238                                        flag = TRUE; 
    12391239 
     1240                                        /* Check for LOS so that MFLAG_VIEW is set later */ 
     1241                                        if (player_has_los_bold(fy, fx)) easy = TRUE; 
     1242 
    12401243                                        /* Memorize flags */ 
    12411244                                        l_ptr->flags[1] |= (RF1_WEIRD_MIND); 
     
    12521255                                /* Detectable */ 
    12531256                                flag = TRUE; 
     1257 
     1258                                /* Check for LOS to that MFLAG_VIEW is set later */ 
     1259                                if (player_has_los_bold(fy, fx)) easy = TRUE; 
    12541260 
    12551261                                /* Hack -- Memorize mental flags */