1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 17:15:33 +00:00

Merge pull request #1476 from akortunov/wanderfix

Fix regressions in PR1474
This commit is contained in:
scrawl 2017-09-24 14:54:25 +00:00 committed by GitHub
commit 5d1392b452
2 changed files with 4 additions and 1 deletions

View file

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

View file

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