diff --git a/source/Irrlicht/dmfsupport.h b/source/Irrlicht/dmfsupport.h index 721f7037..dc65e5bc 100644 --- a/source/Irrlicht/dmfsupport.h +++ b/source/Irrlicht/dmfsupport.h @@ -356,67 +356,6 @@ bool GetDMFMaterials(const StringList& RawFile, } -/**This function extract an array of dmfMaterial from a DMF file considering 1st an 2nd layer for water plains. -You must give in input a StringList representing a DMF file loaded with LoadFromFile. -\return true if function succeed or false on fail.*/ -bool GetDMFWaterMaterials(const StringList& RawFile /**& materials/**= 0.91 - temp=SubdivideString(RawFile[0],";");//file info - - if ( temp[0] != "DeleD Map File" ) - return false;//not a deled file - - temp.clear(); - temp=SubdivideString(RawFile[1]," ");//get version - temp1=SubdivideString(temp[1],";"); - - if (atof(temp1[0].c_str()) < 0.91) - return false;//not correct version - - //end checking - temp.clear(); - temp1.clear(); - - for(int i=0;i& materials/**= 0.91 + temp=SubdivideString(RawFile[0],";");//file info + + if ( temp[0] != "DeleD Map File" ) + return false;//not a deled file + + temp.clear(); + temp=SubdivideString(RawFile[1]," ");//get version + temp1=SubdivideString(temp[1],";"); + + if (atof(temp1[0].c_str()) < 0.91) + return false;//not correct version + + //end checking + temp.clear(); + temp1.clear(); + + for(int i=0;i