Changeset 5751 in orxonox.OLD for trunk/src/story_entities/campaign.cc
- Timestamp:
- Nov 24, 2005, 1:14:06 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/campaign.cc
r5671 r5751 91 91 return; 92 92 93 const TiXmlElement* element = root->FirstChildElement(); 94 // load Worlds/Subcampaigns/Whatever 95 StoryEntity* lastCreated = NULL; 96 while( element != NULL) 93 LOAD_PARAM_START_CYCLE(root, element); 97 94 { 98 95 PRINTF(5)("Campaign: Constructor: adding a world\n"); 99 96 StoryEntity* created = (StoryEntity*) GameLoader::getInstance()->fabricate(element); 100 /*101 if( lastCreated != NULL)102 created->setNextStoryID( lastCreated->getStoryID());103 else104 created->setNextStoryID( WORLD_ID_GAMEEND);105 */106 97 if( created != NULL) 107 98 { 108 99 this->addEntity( created); 109 lastCreated = created; 110 } 111 element = element->NextSiblingElement(); 100 } 112 101 } 102 LOAD_PARAM_END_CYCLE(element); 113 103 } 114 104
Note: See TracChangeset
for help on using the changeset viewer.