diff --git a/src/format.h b/src/format.h index a37da8a..0cc5bea 100644 --- a/src/format.h +++ b/src/format.h @@ -1088,9 +1088,13 @@ namespace TR { }; } - struct fixed { - uint16 L; - int16 H; + union fixed { + uint32 value; + struct { + uint16 L; + int16 H; + }; + operator float() const { return H + L / 65535.0f; }