mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-09 20:17:54 +03:00
Merge branch 'hardlanding' into 'master'
Init mJumpState based on saved fallheight (#5739) See merge request OpenMW/openmw!532
This commit is contained in:
commit
29fdcb3fa1
2 changed files with 5 additions and 0 deletions
|
@ -883,7 +883,11 @@ CharacterController::CharacterController(const MWWorld::Ptr &ptr, MWRender::Anim
|
|||
}
|
||||
|
||||
if(!cls.getCreatureStats(mPtr).isDead())
|
||||
{
|
||||
mIdleState = CharState_Idle;
|
||||
if (cls.getCreatureStats(mPtr).getFallHeight() > 0)
|
||||
mJumpState = JumpState_InAir;
|
||||
}
|
||||
else
|
||||
{
|
||||
const MWMechanics::CreatureStats& cStats = mPtr.getClass().getCreatureStats(mPtr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue