Changeset 3557 in orxonox.OLD for orxonox/branches/levelloader/src/game_loader.cc
- Timestamp:
- Mar 15, 2005, 10:53:46 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/game_loader.cc
r3542 r3557 282 282 BaseObject* GameLoader::fabricate( TiXmlElement* element) 283 283 { 284 assert( element != NULL); 285 284 286 if( first == NULL) 285 287 { … … 288 290 } 289 291 290 return first->fabricate( element); 291 } 292 if( element->Value() != NULL) 293 { 294 PRINTF0("Attempting fabrication of a '%s'\n", element->Value()); 295 BaseObject* b = first->fabricate( element); 296 if( b == NULL) PRINTF0("Failed to fabricate a '%s'\n", element->Value()); 297 else PRINTF0("Successfully fabricated a '%s'\n", element->Value()); 298 return b; 299 } 300 301 PRINTF0("Fabricate failed, TiXmlElement did not contain a value\n"); 302 303 return NULL; 304 }
Note: See TracChangeset
for help on using the changeset viewer.