On Thu, 2007-03-22 at 11:01 +0100, tiennou wrote:
> I'm thinking about those fixed fields, and why we convert them to
> floats/double, whereas AlephOne convert them to ints. Why can't we use
> int too ?
I think we could. I went with double (now float) because I thought it
was more reasonable/correct. Since the minimum light intensity is
presented in the GUI as a percentage, we could just scale the fixed
value (taken as a plain int in the range [0,0x10000]) to [0,100]. I
think we could do similar things for fixed fields in sounds. But it
looks like a hack to me.
BTW your fix backport is incomplete, the most important fix is in
ShapesFrame::SaveObject (converting to float, using modff and roundf).
T
--
Physics is reverse engineering
|