mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-30 04:04:42 +00:00
Use uniform_real_distribution for agent half extents
They have float type.
This commit is contained in:
parent
2386c9d1dc
commit
c844e93f82
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ namespace
|
||||||
|
|
||||||
osg::Vec3f generateAgentHalfExtents(float min, float max, auto& random)
|
osg::Vec3f generateAgentHalfExtents(float min, float max, auto& random)
|
||||||
{
|
{
|
||||||
std::uniform_int_distribution<int> distribution(min, max);
|
std::uniform_real_distribution<float> distribution(min, max);
|
||||||
return osg::Vec3f(distribution(random), distribution(random), distribution(random));
|
return osg::Vec3f(distribution(random), distribution(random), distribution(random));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue