Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 11, 2010, 11:32:01 AM (15 years ago)
Author:
rgrieder
Message:

Ensured OGRE v1.7 "Cthugha" code compatibility. Does not yet seem to run run though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/LevelManager.cc

    r6417 r6501  
    132132    void LevelManager::compileAvailableLevelList()
    133133    {
    134         availableLevels_ = *Resource::findResourceNames("*.oxw");
    135         for (std::vector<std::string>::iterator it = availableLevels_.begin(); it != availableLevels_.end();)
    136             if (it->find("old/") == 0)
    137                 it = availableLevels_.erase(it);
    138             else
     134        this->availableLevels_.clear();
     135        Ogre::StringVectorPtr levels = Resource::findResourceNames("*.oxw");
     136        for (Ogre::StringVector::const_iterator it = levels->begin(); it != levels->end(); ++it)
     137        {
     138            if (it->find("old/") != 0)
    139139            {
    140140                size_t pos = it->find(".oxw");
    141                 *it = it->substr(0, pos);
    142                 ++it;
     141                this->availableLevels_.push_back(it->substr(0, pos));
    143142            }
     143        }
    144144    }
    145145}
Note: See TracChangeset for help on using the changeset viewer.