Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7207 in orxonox.OLD for branches/std/src/world_entities/terrain.cc


Ignore:
Timestamp:
Mar 9, 2006, 11:35:50 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: evil was within

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/std/src/world_entities/terrain.cc

    r7203 r7207  
    175175
    176176
    177 void Terrain::loadVegetation(const char* vegetationFile)
    178 {
    179   PRINTF(0)("loadVegetation: %s\n", vegetationFile);
     177void Terrain::loadVegetation(const std::string& vegetationFile)
     178{
     179  PRINTF(0)("loadVegetation: %s\n", vegetationFile.c_str());
    180180  if (this->vegetation)
    181181    ResourceManager::getInstance()->unload(this->vegetation, RP_LEVEL);
    182   if (vegetationFile != NULL)
     182  if (!vegetationFile.empty())
    183183  {
    184     PRINTF(4)("fetching %s\n", vegetationFile);
     184    PRINTF(4)("fetching %s\n", vegetationFile.c_str());
    185185    this->vegetation = dynamic_cast<Model*>(ResourceManager::getInstance()->load(vegetationFile, OBJ, RP_CAMPAIGN));
    186186  }
Note: See TracChangeset for help on using the changeset viewer.