Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Mar 12, 2006, 6:38:41 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more strings

File:
1 edited

Legend:

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

    r7217 r7220  
    5959   this either loads out of an OBJ-file, or loads a heightmap if no .obj-extension is found.
    6060*/
    61 Terrain::Terrain(const char* fileName)
     61Terrain::Terrain(const std::string& fileName)
    6262{
    6363  this->init();
    6464
    65   if (!strstr(fileName, ".obj") || !strstr(fileName, ".OBJ") )
     65  if (fileName.rfind(".obj" ) != -1 || fileName.rfind(".OBJ") != -1 )
    6666  {
    6767    this->loadModel(fileName);
Note: See TracChangeset for help on using the changeset viewer.