Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 3, 2012, 9:25:48 PM (13 years ago)
Author:
landauf
Message:

reverted wrong skybox in teamDeathMatch.oxw
added try-catch to avoid a crash if the scene can't load the skybox

File:
1 edited

Legend:

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

    r8858 r9273  
    258258    void Scene::setSkybox(const std::string& skybox)
    259259    {
    260         if (GameMode::showsGraphics() && this->sceneManager_)
    261             this->sceneManager_->setSkyBox(true, skybox);
     260        try
     261        {
     262            if (GameMode::showsGraphics() && this->sceneManager_)
     263                this->sceneManager_->setSkyBox(true, skybox);
     264        }
     265        catch (const Ogre::Exception&)
     266        {
     267            orxout(internal_error) << "Could not load skybox '" << skybox << "':" << endl;
     268            orxout(internal_error) << Exception::handleMessage() << endl;
     269        }
    262270
    263271        this->skybox_ = skybox;
Note: See TracChangeset for help on using the changeset viewer.