Changeset 2908 for code/branches/questsystem5/src/orxonox/objects/Scene.cc
- Timestamp:
- Apr 8, 2009, 12:58:47 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/orxonox/objects/Scene.cc
r2907 r2908 41 41 42 42 #include "core/CoreIncludes.h" 43 #include "core/ GameMode.h"43 #include "core/Core.h" 44 44 #include "core/XMLPort.h" 45 45 #include "tools/BulletConversions.h" … … 57 57 this->bShadows_ = true; 58 58 59 if ( GameMode::showsGraphics())59 if (Core::showsGraphics()) 60 60 { 61 61 if (Ogre::Root::getSingletonPtr()) … … 99 99 Ogre::Root::getSingleton().destroySceneManager(this->sceneManager_); 100 100 } 101 else if (! GameMode::showsGraphics())101 else if (!Core::showsGraphics()) 102 102 { 103 103 delete this->sceneManager_; … … 227 227 void Scene::tick(float dt) 228 228 { 229 if (! GameMode::showsGraphics())229 if (!Core::showsGraphics()) 230 230 { 231 231 // We need to update the scene nodes if we don't render … … 256 256 void Scene::setSkybox(const std::string& skybox) 257 257 { 258 if ( GameMode::showsGraphics() && this->sceneManager_)258 if (Core::showsGraphics() && this->sceneManager_) 259 259 this->sceneManager_->setSkyBox(true, skybox); 260 260 … … 264 264 void Scene::setAmbientLight(const ColourValue& colour) 265 265 { 266 if ( GameMode::showsGraphics() && this->sceneManager_)266 if (Core::showsGraphics() && this->sceneManager_) 267 267 this->sceneManager_->setAmbientLight(colour); 268 268 … … 272 272 void Scene::setShadow(bool bShadow) 273 273 { 274 if ( GameMode::showsGraphics() && this->sceneManager_)274 if (Core::showsGraphics() && this->sceneManager_) 275 275 { 276 276 if (bShadow)
Note: See TracChangeset
for help on using the changeset viewer.