Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4816 in orxonox.OLD for orxonox/trunk/src/util


Ignore:
Timestamp:
Jul 7, 2005, 4:24:58 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: the story entities now get deleted properly on shutdown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/loading/game_loader.cc

    r4739 r4816  
    4949   \brief simple deconstructor
    5050*/
    51 GameLoader::~GameLoader () {}
     51GameLoader::~GameLoader ()
     52{
     53  if( this->currentCampaign)
     54    delete this->currentCampaign;
     55  this->currentCampaign = NULL;
     56}
    5257
    5358
     
    97102      delete campaignName;
    98103    }
    99   World* world0 = new World(DEBUG_WORLD_0);
    100   world0->setNextStoryID(WORLD_ID_GAMEEND);
    101   this->currentCampaign->addEntity(world0, WORLD_ID_2);
     104//   World* world0 = new World(DEBUG_WORLD_0);
     105//   world0->setNextStoryID(WORLD_ID_GAMEEND);
     106//   this->currentCampaign->addEntity(world0, WORLD_ID_2);
    102107}
    103108
     
    165170  if(this->currentCampaign != NULL)
    166171    this->currentCampaign->stop();
    167   this->currentCampaign = NULL;
    168172}
    169173
Note: See TracChangeset for help on using the changeset viewer.