CallFunctionFast cast to int?
Posted: Tue Dec 22, 2009 4:52 pm
in the update log you find a little entry called:
- Changed: Call(C)Function(Fast) parameters have been changed from 'Any' to 'Integer'.
why that? It's simply wrong to cast 32bit floats in a callfunctionfast to int. For example take a look inside the directX documention:
D3DXMatrixRotationYawPitchRoll or D3DXMatrixTranslation - both function take 32bit floats as parameter. With this change in the update you can no longer use callfunctionfast to use these function. Please turn it back... It's a pain in the a** when you work a lot with the win32 api or directX directly.
Yes, I know that I can use prototyps, anyway, this casting behavior is wrong.
- Changed: Call(C)Function(Fast) parameters have been changed from 'Any' to 'Integer'.
why that? It's simply wrong to cast 32bit floats in a callfunctionfast to int. For example take a look inside the directX documention:
D3DXMatrixRotationYawPitchRoll or D3DXMatrixTranslation - both function take 32bit floats as parameter. With this change in the update you can no longer use callfunctionfast to use these function. Please turn it back... It's a pain in the a** when you work a lot with the win32 api or directX directly.
Yes, I know that I can use prototyps, anyway, this casting behavior is wrong.