mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-09 12:25:17 -04:00
Merge pull request #1476 from akortunov/wanderfix
Fix regressions in PR1474
This commit is contained in:
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…
x
Reference in New Issue
Block a user