Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 17, 2010, 2:36:42 PM (15 years ago)
Author:
rgrieder
Message:

Fixed two bugs in HUDNavigation.cc and RadarViewable.

Location:
code/branches/hudelements/src
Files:
3 edited

Legend:

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

    r6899 r6907  
    100100    {
    101101        activeObjectListType::iterator it;
    102         for( it = activeObjectList_.begin(); it!=activeObjectList_.end(); ++it )
     102        for( it = activeObjectList_.begin(); it!=activeObjectList_.end(); )
    103103        {
    104             removeObject(it->first);
     104            removeObject((it++)->first);
    105105        }
    106106        activeObjectList_.clear();
  • code/branches/hudelements/src/orxonox/interfaces/RadarViewable.cc

    r6727 r6907  
    5252
    5353        this->uniqueId_=getUniqueNumberString();
    54         this->creator_->getScene()->getRadar()->addRadarObject(this);
     54        this->radar_ = this->creator_->getScene()->getRadar();
     55        this->radar_->addRadarObject(this);
    5556        this->bInitialized_ = true;
    5657    }
     
    6061    {
    6162        if( this->bInitialized_ )
    62             this->creator_->getScene()->getRadar()->removeRadarObject(this);
     63            this->radar_->removeRadarObject(this);
    6364    }
    6465
     
    100101    void RadarViewable::settingsChanged()
    101102    {
    102         this->creator_->getScene()->getRadar()->radarObjectChanged(this);
     103        this->radar_->radarObjectChanged(this);
    103104    }
    104105}
  • code/branches/hudelements/src/orxonox/interfaces/RadarViewable.h

    r6727 r6907  
    3737#include "util/Math.h"
    3838#include "core/OrxonoxClass.h"
     39#include "core/SmartPtr.h"
    3940
    4041namespace orxonox
     
    132133
    133134        //Radar
     135        SmartPtr<Radar> radar_;
    134136        float radarObjectCamouflage_;
    135137        Shape radarObjectShape_;
Note: See TracChangeset for help on using the changeset viewer.