Changeset 7207 in orxonox.OLD for branches/std/src/world_entities/terrain.cc
- Timestamp:
- Mar 9, 2006, 11:35:50 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/world_entities/terrain.cc
r7203 r7207 175 175 176 176 177 void Terrain::loadVegetation(const char*vegetationFile)178 { 179 PRINTF(0)("loadVegetation: %s\n", vegetationFile );177 void Terrain::loadVegetation(const std::string& vegetationFile) 178 { 179 PRINTF(0)("loadVegetation: %s\n", vegetationFile.c_str()); 180 180 if (this->vegetation) 181 181 ResourceManager::getInstance()->unload(this->vegetation, RP_LEVEL); 182 if ( vegetationFile != NULL)182 if (!vegetationFile.empty()) 183 183 { 184 PRINTF(4)("fetching %s\n", vegetationFile );184 PRINTF(4)("fetching %s\n", vegetationFile.c_str()); 185 185 this->vegetation = dynamic_cast<Model*>(ResourceManager::getInstance()->load(vegetationFile, OBJ, RP_CAMPAIGN)); 186 186 }
Note: See TracChangeset
for help on using the changeset viewer.