mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-09 03:57:51 +03:00
Don't consider underwater sneaking to be sneaking
This commit is contained in:
parent
97d285d1c1
commit
a2964f2244
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue