mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-09-30 22:15:42 +00:00
Fix 'dtRandomPointInConvexPoly()' returning a garbage value if s == 1.0f. (#271)
This commit is contained in:
committed by
Jakob Botsch Nielsen
parent
ef3ea40f7a
commit
46654531e4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user