Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5751 in orxonox.OLD for trunk/src/story_entities/campaign.cc


Ignore:
Timestamp:
Nov 24, 2005, 1:14:06 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: really cool hack, to let the fighter fly up and down :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/campaign.cc

    r5671 r5751  
    9191    return;
    9292
    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);
    9794  {
    9895    PRINTF(5)("Campaign: Constructor: adding a world\n");
    9996    StoryEntity* created = (StoryEntity*) GameLoader::getInstance()->fabricate(element);
    100       /*
    101     if( lastCreated != NULL)
    102     created->setNextStoryID( lastCreated->getStoryID());
    103     else
    104     created->setNextStoryID( WORLD_ID_GAMEEND);
    105       */
    10697    if( created != NULL)
    10798    {
    10899      this->addEntity( created);
    109       lastCreated = created;
    110     }
    111     element = element->NextSiblingElement();
     100    }
    112101  }
     102  LOAD_PARAM_END_CYCLE(element);
    113103}
    114104
Note: See TracChangeset for help on using the changeset viewer.