mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-13 09:43:07 +00:00
parent
8c06558cf8
commit
a5a895ffd4
1 changed files with 1 additions and 1 deletions
|
|
@ -1313,7 +1313,7 @@ namespace MWWorld
|
||||||
* currently it's done so for rotating the camera, which needs
|
* currently it's done so for rotating the camera, which needs
|
||||||
* clamping.
|
* 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[1] = Misc::normalizeAngle(objRot[1]);
|
||||||
objRot[2] = Misc::normalizeAngle(objRot[2]);
|
objRot[2] = Misc::normalizeAngle(objRot[2]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue