Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 27, 2009, 7:28:09 PM (15 years ago)
Author:
rgrieder
Message:

Moved Radar Management from GSLevel to Scene.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/orxonox/Scene.cc

    r5805 r5813  
    4444#include "core/XMLPort.h"
    4545#include "tools/BulletConversions.h"
     46#include "Radar.h"
    4647#include "worldentities/WorldEntity.h"
    4748
     
    6263            this->sceneManager_ = Ogre::Root::getSingleton().createSceneManager(Ogre::ST_GENERIC);
    6364            this->rootSceneNode_ = this->sceneManager_->getRootSceneNode();
     65
     66            this->radar_ = new Radar();
    6467        }
    6568        else
     
    6871            this->sceneManager_ = new Ogre::DefaultSceneManager("");
    6972            this->rootSceneNode_ = this->sceneManager_->getRootSceneNode();
     73
     74            this->radar_ = 0;
    7075        }
    7176
     
    9297            else
    9398                delete this->sceneManager_;
     99
     100            if (this->radar_)
     101                this->radar_->destroy();
    94102
    95103            this->setPhysicalWorld(false);
Note: See TracChangeset for help on using the changeset viewer.