ok, a good night of sleep + some googling later:<div>I should use fmod instead of modf :)</div><div><br></div><div>I updated the patch and now it's working for int and floats.</div><div>I still need someone to commit it though.</div>
<div><br></div><div><span class="Apple-style-span" style="border-collapse: collapse; "><a href="http://projects.blender.org/tracker/?func=detail&atid=127&aid=18368&group_id=9" target="_blank" style="color: rgb(42, 93, 176); ">http://projects.blender.org/tracker/?func=detail&atid=127&aid=18368&group_id=9</a></span><br>
</div><div><br></div><div>Cheers,</div><div>Dalai</div><div><br></div><div><a href="http://blenderecia.orgfree.com">http://blenderecia.orgfree.com</a><br><br><div class="gmail_quote">2009/3/5 Dalai Felinto <span dir="ltr"><<a href="mailto:dfelinto@gmail.com">dfelinto@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><span style="border-collapse:collapse"><div>Hello,</div><div>I sent a simple patch to the tracker and would like some review + little help.</div>
<div><a href="http://projects.blender.org/tracker/?func=detail&atid=127&aid=18368&group_id=9" style="color:rgb(42, 93, 176)" target="_blank">http://projects.blender.org/tracker/?func=detail&atid=127&aid=18368&group_id=9</a><br>
</div><div><br></div><div>The idea of this patch is to enable modulus operations in BGE Expressions Controller.<br></div><div><br></div><div>The only problem I had is to deal with float numbers.<br>C++ doesn't support % operations with floats out of the box.<br>
And I couldn't make the alternative (modf) to work here.<br><br>Other than that it's working 100% for the main scenario I can see it being used (int % int).<br></div><div><br></div></span>Can anyone review/"fix"/commit that?<div>
<br></div><div>Thanks & Cheers,</div><div>Dalai</div><div><br></div><div><a href="http://blenderecia.orgfree.com" target="_blank">http://blenderecia.orgfree.com</a></div>
</blockquote></div><br></div>