Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 6, 2010, 9:52:48 PM (13 years ago)
Author:
dafrick
Message:

Accidentally removed a file. Re-adding it.
Levels that are tagged with "test" are now not displayed by default, but can be displayed by choosing show all.

File:
1 edited

Legend:

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

    r7625 r7626  
    134134        this->updateAvailableLevelList();
    135135
    136         COUT(0) << "Number of Levels: " << this->infos_.size() << std::endl;
    137 
    138136        return this->availableLevels_.size();
    139137    }
    140138
    141     const std::string& LevelManager::getAvailableLevelListItem(unsigned int index) const
     139    LevelInfoItem* LevelManager::getAvailableLevelListItem(unsigned int index) const
    142140    {
    143141        if (index >= this->availableLevels_.size())
    144             return BLANKSTRING;
     142            return NULL;
    145143        else
    146144        {
    147145            std::map<std::string, LevelInfoItem*>::const_iterator it = this->infos_.find(this->availableLevels_[index]);
    148             assert(it->second);
    149             return it->second->getName();
     146            return it->second;
    150147        }
    151148    }
     
    172169                {
    173170                    LevelInfoItem* info = item->copy();
    174                     COUT(0) << "BUUUUUUUUUH: " << info->getName() << " | " << info->getXMLFilename() << " | " << it->substr(0, pos) << std::endl;
    175171                    if(info->getXMLFilename() == *it)
    176172                    {
Note: See TracChangeset for help on using the changeset viewer.