Changeset 5308 in orxonox.OLD for trunk/src/world_entities/terrain.cc
- Timestamp:
- Oct 8, 2005, 12:32:52 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.