Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 28, 2005, 8:24:43 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/ll2trunktemp: tested loading of a different WorldEntity (SkyBox) and it works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/ll2trunktemp/src/story_entities/world.cc

    r4004 r4005  
    158158      this->setPath( name);
    159159    }
    160        
    161   this->localPlayer = NULL;
    162 
    163160}
    164161
     
    333330          //todo do this more elegant
    334331          if( element->Value() != NULL && !strcmp( element->Value(), "Player")) localPlayer = (Player*) created;
     332          if( element->Value() != NULL && !strcmp( element->Value(), "SkyBox")) skyBox = (SkyBox*) created;
    335333          element = element->NextSiblingElement();
    336334        }
     
    456454  lightMan->debug();
    457455  lightMan->setPosition(-5.0, 10.0, -40.0);
    458  
    459  
    460   // Create SkySphere
    461   this->skySphere = new Skysphere("../data/pictures/sky-replace.jpg");
    462   this->skySphere->setName("SkySphere");
    463   this->localCamera->addChild(this->skySphere);
    464   spawn(skySphere);
    465  
    466456 
    467457  //        trackManager->setBindSlave(env);
Note: See TracChangeset for help on using the changeset viewer.