mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Closes #1065: Don't apply fall damage when landing in water
This commit is contained in:
parent
2a8ab932ef
commit
17ff8165d2
@ -802,6 +802,9 @@ void CharacterController::update(float duration)
|
||||
if(sneak || inwater || flying)
|
||||
vec.z = 0.0f;
|
||||
|
||||
if (inwater || flying)
|
||||
cls.getCreatureStats(mPtr).land();
|
||||
|
||||
if(!onground && !flying && !inwater)
|
||||
{
|
||||
// In the air (either getting up —ascending part of jump— or falling).
|
||||
@ -925,7 +928,7 @@ void CharacterController::update(float duration)
|
||||
}
|
||||
}
|
||||
|
||||
if (onground || inwater || flying)
|
||||
if (onground)
|
||||
cls.getCreatureStats(mPtr).land();
|
||||
|
||||
if(movestate != CharState_None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user