Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 4, 2011, 10:27:17 PM (13 years ago)
Author:
jo
Message:

Radar fix: pawns were not displayed when their visibility/activity changed from 'invisible' to 'visible'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ai2/src/modules/overlays/hud/HUDNavigation.cc

    r8874 r8875  
    164164
    165165    unsigned int markerCount_ = 0;
    166     bool closeEnough_ = false; //inly display objects that are close enough to be relevant for the player
     166    bool closeEnough_ = false; //only display objects that are close enough to be relevant for the player
    167167//         for (ObjectMap::iterator it = activeObjectList_.begin(); it != activeObjectList_.end(); ++it)
    168168    for ( sortedList::iterator listIt = sortedObjectList_.begin(); listIt != sortedObjectList_.end(); ++markerCount_, ++listIt )
    169169    {
    170170        ObjectMap::iterator it = activeObjectList_.find ( listIt->first );
    171         if( detectionLimit_ < 0 )
    172             closeEnough_ = true ;
    173         else
    174             closeEnough_ = listIt->second < detectionLimit_ ;
    175         if ( markerCount_ < markerLimit_ && closeEnough_ ) // display on HUD íf statement is true
     171        closeEnough_ = listIt->second < detectionLimit_ ;
     172        if ( markerCount_ < markerLimit_ && (closeEnough_ ||  detectionLimit_ < 0) ) // display on HUD if the statement is true
    176173        {
    177174
Note: See TracChangeset for help on using the changeset viewer.