Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 15, 2005, 10:53:46 AM (19 years ago)
Author:
chris
Message:

orxonox/branches/levelloader: Rolling toward bug-free-ness

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/levelloader/src/game_loader.cc

    r3542 r3557  
    282282BaseObject* GameLoader::fabricate( TiXmlElement* element)
    283283{
     284        assert( element != NULL);
     285       
    284286        if( first == NULL)
    285287        {
     
    288290        }
    289291       
    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.