Changeset 5308 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Oct 8, 2005, 12:32:52 AM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/environment.cc
r5285 r5308 34 34 { 35 35 this->setClassID(CL_ENVIRONMENT, "Environment"); 36 this-> model = (Model*)ResourceManager::getInstance()->load("models/ships/bolido.obj", OBJ, RP_CAMPAIGN);36 this->loadModel("models/ships/bolido.obj"); 37 37 38 38 /* if(this->obbTree == NULL) -
trunk/src/world_entities/skybox.cc
r5302 r5308 101 101 for (int i = 0; i < 6; i++) 102 102 delete this->material[i]; 103 delete []this->material;103 delete[] this->material; 104 104 delete this->model; 105 105 this->model = NULL; //< so that WorldEntity does not try to delete it again. -
trunk/src/world_entities/terrain.cc
r5143 r5308 39 39 this->loadParams(root); 40 40 41 this->ssp = new SpatialSeparation((AbstractModel*)this->model, 10.0f); 41 // if (this->model != NULL) 42 //this->ssp = new SpatialSeparation((AbstractModel*)this->model, 10.0f); 42 43 } 43 44 … … 53 54 this->init(); 54 55 55 if ( strstr(fileName, ".obj") || strstr(fileName, ".OBJ"))56 { 57 this-> model = (Model*)ResourceManager::getInstance()->load(fileName, OBJ, RP_LEVEL);56 if (!strcasestr(fileName, ".obj") ) 57 { 58 this->loadModel(fileName); 58 59 } 59 60 else … … 65 66 /** 66 67 * a Constructor for the Debug-Worlds 67 68 @todo make it not compileable when not in debug-mode 69 */ 68 */ 70 69 Terrain::Terrain(DebugTerrain debugTerrain) 71 70 { … … 92 91 93 92 this->objectList = 0; 93 this->ssp = NULL; 94 94 } 95 95 … … 122 122 123 123 /* THIS IS ONLY FOR DEBUGGING INFORMATION */ 124 this->ssp->drawQuadtree(); 124 if (this->ssp != NULL) 125 this->ssp->drawQuadtree(); 125 126 } 126 127 … … 289 290 */ 290 291 } 291 292 } 292 } -
trunk/src/world_entities/terrain.h
r5039 r5308 42 42 private: 43 43 int objectList; 44 45 44 }; 46 45
Note: See TracChangeset
for help on using the changeset viewer.