mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-17 18:36:43 +02:00
fix #143
This commit is contained in:
@@ -2227,7 +2227,8 @@ struct Lara : Character {
|
|||||||
virtual int getStateAir() {
|
virtual int getStateAir() {
|
||||||
angle.x = 0.0f;
|
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;
|
return STATE_FALL;
|
||||||
|
|
||||||
if (state == STATE_REACH && getDir().dot(vec3(velocity.x, 0.0f, velocity.z)) < 0)
|
if (state == STATE_REACH && getDir().dot(vec3(velocity.x, 0.0f, velocity.z)) < 0)
|
||||||
|
Reference in New Issue
Block a user