3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-27 05:35:37 +02:00

Format numeric constant in strafe crash commit to match coding standards

This commit is contained in:
sabrina-shanman 2018-06-20 08:45:12 -07:00
parent 45fdf3d68f
commit a8b2da14cf

View file

@ -109,7 +109,7 @@ bool MyCharacterController::testRayShotgun(const glm::vec3& position, const glm:
if (lengthAxis > FLT_EPSILON) {
// we're walking sideways
btScalar cosAngle = lengthAxis / adjustedDirection.length();
if (cosAngle < 1) {
if (cosAngle < 1.0f) {
btScalar angle = acosf(cosAngle);
if (rayDirection.dot(forward) < 0.0f) {
angle = PI - angle;