1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-29 14:34:29 +00:00

Merge branch 'fix_benchmark_distribution' into 'master'

Use uniform_real_distribution for agent half extents

See merge request OpenMW/openmw!5005
This commit is contained in:
Alexei Kotov 2025-11-23 15:00:08 +03:00
commit 46e0369fee

View file

@ -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));
} }