Re: Records saving
Posted: 02 Mar 2012, 08:43
Perhaps just treat the version like a 4-byte enum with specific recognized values. No floats. Floating-point equality is a really tricky thing anyway when dealing with numbers that aren't exactly representable. Some compilers even throw warnings about using ==, <=, >= or != with floats.werdanith wrote:That's why I said I don't know what to do about it. This requires either the ESM_Context struct to be rewritten or a function that converts floats that pretend to be ints into real floats.