Fix 'dtRandomPointInConvexPoly()' returning a garbage value if s == 1.0f. (#271)

This commit is contained in:
Geoyeob Kim
2017-05-15 23:26:35 +09:00
committed by Jakob Botsch Nielsen
parent ef3ea40f7a
commit 46654531e4
4 changed files with 38 additions and 3 deletions

View File

@@ -45,7 +45,7 @@
// Uncomment this to dump all the requests in stdout.
#define DUMP_REQS
// Returns a random number [0..1)
// Returns a random number [0..1]
static float frand()
{
// return ((float)(rand() & 0xffff)/(float)0xffff);