Changeset 8907 in orxonox.OLD for branches/single_player_map/src/world_entities/bsp_entity.cc
- Timestamp:
- Jun 29, 2006, 2:10:27 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/world_entities/bsp_entity.cc
r8904 r8907 39 39 BspEntity::~BspEntity () 40 40 { 41 if( this->bspManager )41 if( this->bspManager != NULL) 42 42 delete this->bspManager; 43 43 } … … 51 51 void BspEntity::init() 52 52 { 53 this->setClassID(CL_BSP_ENTITY, "BspEntity"); 53 54 54 this->bspManager = NULL; 55 55 /** … … 64 64 65 65 // Check wether file exists.... 66 if ( File(ResourceManager::getFullName(name)).exists() ){ 67 // War das Laden erfolgreich? 66 if ( File(ResourceManager::getFullName(name)).exists() ) { 67 68 this->setClassID(CL_BSP_ENTITY, "BspEntity"); 68 69 this->bspManager = new BspManager(this); 70 69 71 if(this->bspManager->load(name.c_str(), 0.1f) == -1 ) { 70 72 this->bspManager = NULL; 71 // Dont do anything 73 72 74 } else { 73 74 75 75 this->toList(OM_ENVIRON); // Success!!! 76 76 } 77 77 } else { 78 this->bspManager = NULL; 78 79 this->toList(OM_DEAD); 79 80 }
Note: See TracChangeset
for help on using the changeset viewer.