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:
parent
45fdf3d68f
commit
a8b2da14cf
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue