Merge pull request #1476 from akortunov/wanderfix

Fix regressions in PR1474
experimental
scrawl 7 years ago committed by GitHub
commit 5d1392b452

@ -1892,7 +1892,7 @@ void CharacterController::update(float duration)
movestate = mMovementState;
}
if(!isTurning())
if(movestate != CharState_None && !isTurning())
clearAnimQueue();
if(mAnimQueue.empty() || inwater || sneak)

@ -2123,6 +2123,9 @@ namespace MWWorld
bool World::isUnderwater(const MWWorld::CellStore* cell, const osg::Vec3f &pos) const
{
if (!cell)
return false;
if (!(cell->getCell()->hasWater())) {
return false;
}

Loading…
Cancel
Save