Eliot's Forum

Full Version: Parenthesis Aren't Retained in Math [Unreal 227h]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
EndTrace = StartTrace + Accuracy * (FRand() - 0.5 )* Y * 1000
               + Accuracy * (FRand() - 0.5 ) * Z * 1000;

Decompiles to:

Code:
EndTrace = StartTrace + Accuracy * FRand() - 0.50 * Y * float(1000) + Accuracy * FRand() - 0.50 * Z * float(1000);

I think you can see where the parenthesis are stripped :p.
I'm struggling to figure out where those parenthesis even resist within the package. The only priority I can get are the standard ones defined in the operators. :/