1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-01 16:09:55 +00:00

Merge branch 'astoecke-fix-osg-341-pif' into 'master'

Fix compilation with OpenSceneGraph 3.4.1 (#6381)

Closes #6381

See merge request OpenMW/openmw!1339
This commit is contained in:
psi29a 2021-11-02 10:12:05 +00:00
commit 4d71e26ac8

View file

@ -1313,7 +1313,7 @@ namespace MWWorld
* currently it's done so for rotating the camera, which needs
* clamping.
*/
objRot[0] = osg::clampBetween(objRot[0], -osg::PIf / 2, osg::PIf / 2);
objRot[0] = osg::clampBetween<float>(objRot[0], -osg::PI_2, osg::PI_2);
objRot[1] = Misc::normalizeAngle(objRot[1]);
objRot[2] = Misc::normalizeAngle(objRot[2]);
}