mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 04:45:33 +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;
|
||||
}
|
||||
|
||||
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…
Reference in a new issue