X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FTerrain.cpp;h=1683dfc88c0426cd7d2ab8b79bfd903e565a2d0e;hb=85f9eeb8f438d6d542c0c7b7446b31585cc9c23d;hp=6ee96a5e49772837204655ab0c08126910dd1150;hpb=2ee52e8aac60f13cdbfb53adcacac57985f4e24f;p=lugaru.git diff --git a/Source/Terrain.cpp b/Source/Terrain.cpp index 6ee96a5..1683dfc 100644 --- a/Source/Terrain.cpp +++ b/Source/Terrain.cpp @@ -380,8 +380,12 @@ bool Terrain::load(const char *fileName) float temptexdetail=texdetail; texdetail=terraindetail; //LoadTGA( fileName ); + + // Fixing filename so that it works with its own os + char * FixedFN = ConvertFileName(fileName); + unsigned char fileNamep[256]; - CopyCStringToPascal(fileName,fileNamep); + CopyCStringToPascal(FixedFN, fileNamep); //Load Image upload_image( fileNamep ,0);