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.
Records saving
Re: Records saving
Re: Records saving
Essentially that's how the esm_reader and my conditional treat it.Chris wrote: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.