[Bf-committers] Modulus (ie %) expression controller in BGE :: little help+review+commit

Dalai Felinto dfelinto at gmail.com
Thu Mar 5 07:00:42 CET 2009


Hello,
I sent a simple patch to the tracker and would like some review + little
help.
http://projects.blender.org/tracker/?func=detail&atid=127&aid=18368&group_id=9

The idea of this patch is to enable modulus operations in BGE Expressions
Controller.

The only problem I had is to deal with float numbers.
C++ doesn't support % operations with floats out of the box.
And I couldn't make the alternative (modf) to work here.

Other than that it's working 100% for the main scenario I can see it being
used (int % int).

Can anyone review/"fix"/commit that?
Thanks & Cheers,
Dalai

http://blenderecia.orgfree.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-committers/attachments/20090305/0b0f4c57/attachment.htm 


More information about the Bf-committers mailing list