Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3221 in orxonox.OLD for orxonox/trunk/src/campaign.cc


Ignore:
Timestamp:
Dec 19, 2004, 10:44:35 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: added doxy comments to class StoryEntity, little changes in the destructors of world/story entities. solved an issue with the destructor of WorldEntities. ALL SEGFAULT ERRORS SHOULD NOW BE REMOVED :)

File:
1 edited

Legend:

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

    r3220 r3221  
    8282  printf("World::start() - starting new StoryEntity Nr:%i\n", storyID);
    8383  Error errorCode;
    84   if(!this->isInit) return errorCode;
    85   if(storyID == WORLD_ID_GAMEEND) return errorCode;
     84  if( !this->isInit) return errorCode;
     85  if( storyID == WORLD_ID_GAMEEND) return errorCode;
    8686  this->running = true;
    8787  StoryEntity* se = this->getStoryEntity(storyID);
    8888  this->currentEntity = se;
    89   while(se != NULL && this->running)
     89  while( se != NULL && this->running)
    9090    {
    91       //se = this->getStoryEntity(storyID);
    92      
    93      
    9491      se->displayLoadScreen();
    9592      se->load();
     
    9794      se->releaseLoadScreen();
    9895      se->start();
    99 
     96      se->destroy();
     97     
    10098      delete se;
    10199
Note: See TracChangeset for help on using the changeset viewer.