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


Messages In This Thread
Parenthesis Aren't Retained in Math [Unreal 227h] - by titegtnodI - 04-09-2012, 01:29 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)