Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parenthesis Aren't Retained in Math [Unreal 227h]
#1
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.
Reply
#2
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. :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)