1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 02:49:55 +00:00

Do not interpret noclip mode as flying

This commit is contained in:
Chris Robinson 2013-02-22 01:26:30 -08:00
parent 7fcca180b6
commit 9c3af5f344

View file

@ -1389,15 +1389,9 @@ namespace MWWorld
bool
World::isFlying(const MWWorld::Ptr &ptr) const
{
RefData &refdata = ptr.getRefData();
const OEngine::Physic::PhysicActor *physactor = mPhysEngine->getCharacter(refdata.getHandle());
if(!physactor || !physactor->getCollisionMode())
return true;
const MWWorld::Class &cls = MWWorld::Class::get(ptr);
if(cls.isActor() && cls.getCreatureStats(ptr).getMagicEffects().get(MWMechanics::EffectKey(10/*levitate*/)).mMagnitude > 0)
return true;
return false;
}