mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 04:41:32 +00:00
Minor fixes
Fix extra semicolon Disable collision avoidance if AI is disabled
This commit is contained in:
parent
981fffe590
commit
8a6d3d1b4f
2 changed files with 4 additions and 1 deletions
|
@ -1731,6 +1731,9 @@ namespace MWMechanics
|
||||||
|
|
||||||
void Actors::predictAndAvoidCollisions()
|
void Actors::predictAndAvoidCollisions()
|
||||||
{
|
{
|
||||||
|
if (!MWBase::Environment::get().getMechanicsManager()->isAIActive())
|
||||||
|
return;
|
||||||
|
|
||||||
const float minGap = 10.f;
|
const float minGap = 10.f;
|
||||||
const float maxDistForPartialAvoiding = 200.f;
|
const float maxDistForPartialAvoiding = 200.f;
|
||||||
const float maxDistForStrictAvoiding = 100.f;
|
const float maxDistForStrictAvoiding = 100.f;
|
||||||
|
|
|
@ -83,7 +83,7 @@ namespace NifOsg
|
||||||
mLastLowKey = mKeys->mKeys.end();
|
mLastLowKey = mKeys->mKeys.end();
|
||||||
mLastHighKey = mKeys->mKeys.end();
|
mLastHighKey = mKeys->mKeys.end();
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
ValueInterpolator(std::shared_ptr<const MapT> keys, ValueT defaultVal = ValueT())
|
ValueInterpolator(std::shared_ptr<const MapT> keys, ValueT defaultVal = ValueT())
|
||||||
: mKeys(keys)
|
: mKeys(keys)
|
||||||
|
|
Loading…
Reference in a new issue