- Timestamp:
- Jan 16, 2007, 11:04:11 PM (18 years ago)
- Location:
- branches/mount_points/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mount_points/src/lib/graphics/importer/oif/object_information_file.cc
r10239 r10240 29 29 */ 30 30 OIFData::OIFData() 31 {} 31 { 32 this->_root = NULL; 33 } 32 34 33 35 … … 38 40 OIFData::OIFData(const std::string& fileName) 39 41 { 42 this->_root = NULL; 43 40 44 this->load(fileName); 41 45 } … … 48 52 void OIFData::load(const std::string& fileName) 49 53 { 50 //54 PRINTF(0)("loading %s as oif data\n", fileName.c_str()); 51 55 if( fileName.empty()) 52 56 { … … 60 64 { 61 65 // report an error 62 PRINTF( 3)("Could not load XML File %s: %s @ %d:%d\n", fileName.c_str(), XMLDoc.ErrorDesc(), XMLDoc.ErrorRow(), XMLDoc.ErrorCol());66 PRINTF(1)("Could not load XML File %s: %s @ %d:%d\n", fileName.c_str(), XMLDoc.ErrorDesc(), XMLDoc.ErrorRow(), XMLDoc.ErrorCol()); 63 67 return; 64 68 } -
branches/mount_points/src/world_entities/mount_point.cc
r10239 r10240 70 70 void MountPoint::initMountPoint(const TiXmlElement* root) 71 71 { 72 if( root == NULL) 73 { 74 PRINTF(1)("MountPoint - initialization failed, since I got no valid xml element\n"); 75 return; 76 } 77 // now get the first element 72 78 const TiXmlElement* element = root->FirstChildElement("MountPoints"); 73 79 if( element == NULL)
Note: See TracChangeset
for help on using the changeset viewer.