Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1782


Ignore:
Timestamp:
Sep 15, 2008, 9:41:55 AM (16 years ago)
Author:
rgrieder
Message:
  • fixed the other bug with the Radar. The dots now disappear when enemies get killed permanently.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/overlays/hud/HUDRadar.cc

    r1747 r1782  
    9393        const WorldEntity* wePointer = object->getWorldEntity();
    9494
    95         // Just to be sure that we actually have a WorldEntity
    96         // We could do a dynamic_cast, but that's a lot slower
     95        // Just to be sure that we actually have a WorldEntity.
     96        // We could do a dynamic_cast, but that would be a lot slower.
    9797        if (!wePointer)
    9898        {
     
    125125                panel->setMaterialName(materialName);
    126126        }
     127        panel->show();
    127128
    128129        // set size to fit distance...
     
    147148    void HUDRadar::radarTick(float dt)
    148149    {
     150        for (itRadarDots_ = radarDots_.begin(); itRadarDots_ != radarDots_.end(); ++itRadarDots_)
     151            (*itRadarDots_)->hide();
    149152        this->itRadarDots_ = this->radarDots_.begin();
    150153        this->marker_->hide();
Note: See TracChangeset for help on using the changeset viewer.