Commit 9f63a21c authored by hybrid's avatar hybrid

Fix version number calculation.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2334 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 6124df98
......@@ -444,7 +444,7 @@ void CColladaFileLoader::readColladaSection(io::IXMLReaderUTF8* reader)
return;
const f32 version = core::fast_atof(core::stringc(reader->getAttributeValue("version")).c_str());
Version = core::floor32(version)*10000+core::floor32(core::fract(version)*1000.0f);
Version = core::floor32(version)*10000+core::round32(core::fract(version)*1000.0f);
// Version 1.4 can be checked for by if (Version >= 10400)
while(reader->read())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment