mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 19:36:42 +00:00
Don't "jump" with 0 vertical velocity in all cases (bug #5106)
This commit is contained in:
parent
56c9c72bc7
commit
f8c07ca9dc
2 changed files with 3 additions and 2 deletions
|
@ -116,6 +116,7 @@
|
||||||
Bug #5093: Hand to hand sound plays on knocked out enemies
|
Bug #5093: Hand to hand sound plays on knocked out enemies
|
||||||
Bug #5099: Non-swimming enemies will enter water if player is water walking
|
Bug #5099: Non-swimming enemies will enter water if player is water walking
|
||||||
Bug #5105: NPCs start combat with werewolves from any distance
|
Bug #5105: NPCs start combat with werewolves from any distance
|
||||||
|
Bug #5106: Still can jump even when encumbered
|
||||||
Bug #5110: ModRegion with a redundant numerical argument breaks script execution
|
Bug #5110: ModRegion with a redundant numerical argument breaks script execution
|
||||||
Feature #1774: Handle AvoidNode
|
Feature #1774: Handle AvoidNode
|
||||||
Feature #2229: Improve pathfinding AI
|
Feature #2229: Improve pathfinding AI
|
||||||
|
|
|
@ -2065,7 +2065,8 @@ void CharacterController::update(float duration, bool animationOnly)
|
||||||
cls.getCreatureStats(mPtr).setFatigue(fatigue);
|
cls.getCreatureStats(mPtr).setFatigue(fatigue);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(sneak || inwater || flying || incapacitated || !solid)
|
float z = cls.getJump(mPtr);
|
||||||
|
if(sneak || inwater || flying || incapacitated || !solid || z <= 0)
|
||||||
vec.z() = 0.0f;
|
vec.z() = 0.0f;
|
||||||
|
|
||||||
bool inJump = true;
|
bool inJump = true;
|
||||||
|
@ -2088,7 +2089,6 @@ void CharacterController::update(float duration, bool animationOnly)
|
||||||
else if(vec.z() > 0.0f && mJumpState != JumpState_InAir)
|
else if(vec.z() > 0.0f && mJumpState != JumpState_InAir)
|
||||||
{
|
{
|
||||||
// Started a jump.
|
// Started a jump.
|
||||||
float z = cls.getJump(mPtr);
|
|
||||||
if (z > 0)
|
if (z > 0)
|
||||||
{
|
{
|
||||||
if(vec.x() == 0 && vec.y() == 0)
|
if(vec.x() == 0 && vec.y() == 0)
|
||||||
|
|
Loading…
Reference in a new issue