|
|
|
@ -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);
|
|
|
|
|