1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-02-25 07:52:43 +01:00
This commit is contained in:
XProger 2018-11-12 05:17:56 +03:00
parent d5d0675c10
commit 90df8aaa75

View File

@ -2227,7 +2227,8 @@ struct Lara : Character {
virtual int getStateAir() {
angle.x = 0.0f;
if (velocity.y > 131.0f && state != STATE_SWAN_DIVE && state != STATE_FAST_DIVE)
float EPSILON = 3.0f;
if (velocity.y > (131.0f + EPSILON) && state != STATE_SWAN_DIVE && state != STATE_FAST_DIVE)
return STATE_FALL;
if (state == STATE_REACH && getDir().dot(vec3(velocity.x, 0.0f, velocity.z)) < 0)