Changeset 7220 in orxonox.OLD for branches/std/src/world_entities/terrain.cc
- Timestamp:
- Mar 12, 2006, 6:38:41 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/world_entities/terrain.cc
r7217 r7220 59 59 this either loads out of an OBJ-file, or loads a heightmap if no .obj-extension is found. 60 60 */ 61 Terrain::Terrain(const char*fileName)61 Terrain::Terrain(const std::string& fileName) 62 62 { 63 63 this->init(); 64 64 65 if ( !strstr(fileName, ".obj") || !strstr(fileName, ".OBJ"))65 if (fileName.rfind(".obj" ) != -1 || fileName.rfind(".OBJ") != -1 ) 66 66 { 67 67 this->loadModel(fileName);
Note: See TracChangeset
for help on using the changeset viewer.