Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4223 in orxonox.OLD for orxonox/branches/physics/src/game_loader.cc


Ignore:
Timestamp:
May 19, 2005, 7:45:28 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/physics: merged back the Trunk into the Physics-branche
merged with command:
svn merge -r 4178:HEAD ../trunk/ physics
no conflicts in relevant files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/physics/src/game_loader.cc

    r4178 r4223  
    7474   this will interprete the map/campaign files and recursivly load a tree of worlds/campaigns
    7575*/
    76 ErrorMessage GameLoader::loadCampaign(char* name)
     76ErrorMessage GameLoader::loadCampaign(const char* name)
    7777{
    7878  ErrorMessage errorCode;
    79   char* campaignName;
    80   if (ResourceManager::isFile(name))
    81     {
    82       this->currentCampaign = this->fileToCampaign(name);
    83     }
    84   else
    85     {
    86       campaignName = new char[strlen(ResourceManager::getInstance()->getDataDir())+strlen(name)];
    87       sprintf(campaignName, "%s%s", ResourceManager::getInstance()->getDataDir(), name);
     79  char* campaignName = ResourceManager::getFullName(name);
     80  if (campaignName)
     81    {
    8882      this->currentCampaign = this->fileToCampaign(campaignName);
    8983      delete campaignName;
Note: See TracChangeset for help on using the changeset viewer.