Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 28, 2008, 7:21:17 PM (15 years ago)
Author:
rgrieder
Message:
  • Removed a const_const that could be easily replaced
  • getScene()→getSceneManager() is non zero again in dedicated mode

—> PLEASE ALWAYS USE Core::showsGraphics() TO IDENTIFY EXACTLY THAT, NOT this→getScene()→getSceneManager().

File:
1 edited

Legend:

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

    r2535 r2537  
    7373        {
    7474            // create a dummy SceneManager of our own since we don't have Ogre::Root.
    75             this->sceneManagerDedicated_ = new Ogre::DefaultSceneManager("");
    76             this->rootSceneNode_ = this->sceneManagerDedicated_->getRootSceneNode();
    77             this->sceneManager_ = 0;
     75            this->sceneManager_ = new Ogre::DefaultSceneManager("");
     76            this->rootSceneNode_ = this->sceneManager_->getRootSceneNode();
    7877        }
    7978
     
    102101            else if (!Core::showsGraphics())
    103102            {
    104                 delete this->sceneManagerDedicated_;
     103                delete this->sceneManager_;
    105104            }
    106105
Note: See TracChangeset for help on using the changeset viewer.