Merge branch 'wet_and_sneaky' into 'master'

Don't consider underwater sneaking to be sneaking

See merge request OpenMW/openmw!1490
pull/3225/head
Alexei Kotov 3 years ago
commit 46564f08ad

@ -1944,7 +1944,7 @@ void CharacterController::update(float duration)
bool flying = world->isFlying(mPtr);
bool solid = world->isActorCollisionEnabled(mPtr);
// Can't run and sneak while flying (see speed formula in Npc/Creature::getSpeed)
bool sneak = cls.getCreatureStats(mPtr).getStance(MWMechanics::CreatureStats::Stance_Sneak) && !flying;
bool sneak = cls.getCreatureStats(mPtr).getStance(MWMechanics::CreatureStats::Stance_Sneak) && !flying && !inwater;
bool isrunning = cls.getCreatureStats(mPtr).getStance(MWMechanics::CreatureStats::Stance_Run) && !flying;
CreatureStats &stats = cls.getCreatureStats(mPtr);
Movement& movementSettings = cls.getMovementSettings(mPtr);

Loading…
Cancel
Save