mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
Bugfix #742
This commit is contained in:
parent
90b38cbfbe
commit
3669d0a998
@ -1453,7 +1453,7 @@ namespace MWWorld
|
|||||||
Ogre::Vector3 playerPos(refdata.getPosition().pos);
|
Ogre::Vector3 playerPos(refdata.getPosition().pos);
|
||||||
|
|
||||||
const OEngine::Physic::PhysicActor *physactor = mPhysEngine->getCharacter(refdata.getHandle());
|
const OEngine::Physic::PhysicActor *physactor = mPhysEngine->getCharacter(refdata.getHandle());
|
||||||
if(!physactor->getOnGround() || isUnderwater(currentCell, playerPos))
|
if((!physactor->getOnGround()&&physactor->getCollisionMode()) || isUnderwater(currentCell, playerPos))
|
||||||
return 2;
|
return 2;
|
||||||
if((currentCell->mCell->mData.mFlags&ESM::Cell::NoSleep))
|
if((currentCell->mCell->mData.mFlags&ESM::Cell::NoSleep))
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user