Closed GoogleCodeExporter closed 8 years ago
If you can rerun the test, what is 'n' in the case?
Original comment by memono...@gmail.com
on 30 Nov 2011 at 11:01
I have included this in my previous post
n=1 pn=185
Original comment by esent...@gmail.com
on 30 Nov 2011 at 11:04
Sorry, skimmed your message too quickly.
Obviously there should be test to see that n > 1. Something like this (around
line 423):
const int n = bi < ai ? (bi+pn - ai) : (bi - ai);
if (n > 1)
{
if (bx > ax || (bx == ax && bz > az))
maxi = (ai + n/2) % pn;
else
maxi = (ai + (n+1)/2) % pn;
}
Let me know if it fixes it.
Original comment by memono...@gmail.com
on 30 Nov 2011 at 11:21
Yes, this code is now correct.
Will the change be commited into the source?
By the way: I'm using your library in my game engine : http://www.esenthel.com/
Thanks for making it!
Original comment by esent...@gmail.com
on 3 Dec 2011 at 11:22
Fixed in R320.
Original comment by memono...@gmail.com
on 6 Dec 2011 at 11:38
Original issue reported on code.google.com by
esent...@gmail.com
on 29 Nov 2011 at 9:44Attachments: