Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 20, 2010, 10:28:10 AM (14 years ago)
Author:
scheusso
Message:

fix in levelmanager: if a template was assigned to the Level the gametype was set twice to the level which resulted in the level being twice in the list of active levels in the levelmanager and only once removed (when the level was destroyed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/orxonox/LevelManager.cc

    r6926 r6927  
    7070    void LevelManager::requestActivity(Level* level)
    7171    {
    72         COUT(0) << "pushing level into level list: " << level << endl;
     72        if( std::find(this->levels_s.begin(), this->levels_s.end(), level)!=this->levels_s.end() )
     73            return; // level is already in list
    7374        this->levels_s.push_back(level);
    7475        if (this->levels_s.size() == 1)
     
    7879    void LevelManager::releaseActivity(Level* level)
    7980    {
    80         COUT(0) << "poping level from level list: " << level << endl;
    8181        if (this->levels_s.size() > 0)
    8282        {
Note: See TracChangeset for help on using the changeset viewer.