mirror of
https://github.com/XProger/OpenLara.git
synced 2025-02-25 07:52:43 +01:00
fix #143
This commit is contained in:
parent
d5d0675c10
commit
90df8aaa75
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user