Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9273


Ignore:
Timestamp:
Jun 3, 2012, 9:25:48 PM (12 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

Location:
code/branches/presentation2012merge
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2012merge/data/levels/teamDeathMatch.oxw

    r9269 r9273  
    2525  <Scene
    2626   ambientlight = "0.7, 0.6, 0.6"
    27    skybox       = "Orxonox/creeper1"
     27   skybox       = "Orxonox/skypanoramagen1"
    2828  >
    2929    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
  • 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.