Quote:
Originally Posted by Bugsy
Compiles fine for me. Do you maybe have x defined globally, as a constant?
Simple fix:
PHP Code:
stock Encode16Fixed_4dot12(Float:fValue)
{
fValue *= float(1 << 12);
new val = floatround(fValue, floatround_floor);
return val<0 ? 0 : (val>0xFFFF ? 0xFFFF : val);
}
|
oo that was, yes i had a X gloabal constant XD my bad, thanks by the way