Changeset 3746 in orxonox.OLD for orxonox/branches/levelloader/src/world_entities/environment.cc
- Timestamp:
- Apr 7, 2005, 3:54:49 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/world_entities/environment.cc
r3605 r3746 30 30 Environment::Environment () : WorldEntity() 31 31 { 32 this->model = new OBJModel("../data/models/fighter.obj"); 32 this->model = (Model*) ResourceManager::getInstance()->load("cube", RP_LEVEL); 33 // this->model = new OBJModel("../data/models/fighter.obj"); 33 34 } 34 35 … … 54 55 string = grabParameter( root, "model"); 55 56 if( string != NULL) 56 this->model = new OBJModel( string);57 this->model = (Model*) ResourceManager::getInstance()->load( string, RP_LEVEL); 57 58 else 58 59 { 59 60 PRINTF0("Environment is missing a proper 'model'\n"); 60 this->model = new OBJModel( "../data/models/reaplow.obj");61 this->model = (Model*) ResourceManager::getInstance()->load( "cube", RP_LEVEL); 61 62 } 62 63 if( this->model == NULL)
Note: See TracChangeset
for help on using the changeset viewer.