mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-02 08:45:34 +00:00
Merge pull request #1476 from akortunov/wanderfix
Fix regressions in PR1474
This commit is contained in:
commit
5d1392b452
2 changed files with 4 additions and 1 deletions
|
@ -1892,7 +1892,7 @@ void CharacterController::update(float duration)
|
||||||
movestate = mMovementState;
|
movestate = mMovementState;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isTurning())
|
if(movestate != CharState_None && !isTurning())
|
||||||
clearAnimQueue();
|
clearAnimQueue();
|
||||||
|
|
||||||
if(mAnimQueue.empty() || inwater || sneak)
|
if(mAnimQueue.empty() || inwater || sneak)
|
||||||
|
|
|
@ -2123,6 +2123,9 @@ namespace MWWorld
|
||||||
|
|
||||||
bool World::isUnderwater(const MWWorld::CellStore* cell, const osg::Vec3f &pos) const
|
bool World::isUnderwater(const MWWorld::CellStore* cell, const osg::Vec3f &pos) const
|
||||||
{
|
{
|
||||||
|
if (!cell)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (!(cell->getCell()->hasWater())) {
|
if (!(cell->getCell()->hasWater())) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue