mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-21 12:21:33 +02:00
#3 force set animation state after landing
This commit is contained in:
@@ -66,6 +66,8 @@ struct Lara : Character {
|
||||
|
||||
ANIM_STAND = 11,
|
||||
|
||||
ANIM_LANDING = 24,
|
||||
|
||||
ANIM_CLIMB_JUMP = 26,
|
||||
|
||||
ANIM_FALL_HANG = 28,
|
||||
@@ -2102,6 +2104,9 @@ struct Lara : Character {
|
||||
if (v > 0.0f)
|
||||
hit(v * v * LARA_MAX_HEALTH / 196.0f, NULL, TR::HIT_FALL);
|
||||
}
|
||||
|
||||
if (state == STATE_FALL && health > 0.0f)
|
||||
animation.setAnim(ANIM_LANDING);
|
||||
}
|
||||
}
|
||||
if (stand == STAND_UNDERWATER || stand == STAND_ONWATER)
|
||||
|
Reference in New Issue
Block a user