Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7087 for code/branches


Ignore:
Timestamp:
Jun 2, 2010, 7:51:14 PM (14 years ago)
Author:
landauf
Message:

quick fix in HUDNavigation: If a Pawn becomes invisible and gets destroyed, it wasn't removed from the list of objects in HUDNavigation, which leads to a crash.
Now it is always removed, but this doesn't fix the whole problem of changing the visibility.

File:
1 edited

Legend:

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

    r7051 r7087  
    354354void HUDNavigation::removeObject ( RadarViewable* viewable )
    355355{
    356     if( showObject(viewable)==false )
    357         return;
    358 
    359356    ObjectMap::iterator it = activeObjectList_.find ( viewable );
    360357
     
    373370    }
    374371
    375 
    376     else
    377         COUT ( 2 ) << "Warning, HUDNavigation: Attempting to remove non-existent object" << std::endl;
    378 
    379372    for ( sortedList::iterator listIt = sortedObjectList_.begin(); listIt != sortedObjectList_.end(); ++listIt )
    380373    {
Note: See TracChangeset for help on using the changeset viewer.