- Timestamp:
- Oct 24, 2008, 2:48:43 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/gamestates/GSLevel.cc
r1962 r2006 57 57 , radar_(0) 58 58 , startLevel_(0) 59 , hud_(0)60 59 { 61 60 RegisterObject(GSLevel); … … 83 82 COUT(4) << "Created SceneManager: " << sceneManager_->getName() << std::endl; 84 83 84 this->sceneManager_->setShadowTechnique(Ogre::SHADOWTYPE_STENCIL_ADDITIVE); 85 85 86 // temporary hack 86 87 GraphicsEngine::getInstance().setLevelSceneManager(this->sceneManager_); … … 88 89 // Start the Radar 89 90 this->radar_ = new Radar(); 90 91 // Load the HUD92 COUT(3) << "Orxonox: Loading HUD" << std::endl;93 hud_ = new Level(Settings::getDataPath() + "overlay/hud.oxo");94 Loader::load(hud_);95 91 96 92 // reset game speed to normal … … 113 109 void GSLevel::leave() 114 110 { 115 Loader::unload(hud_);116 delete this->hud_;117 118 111 // this call will delete every BaseObject! 119 112 // But currently this will call methods of objects that exist no more
Note: See TracChangeset
for help on using the changeset viewer.