From 8b8d55e8d3b5c79d1f1c119cd60fbcc5517d11d4 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Fri, 5 May 2017 03:17:28 +0300 Subject: [PATCH] [Client] Set a very high processing range for AI for the time being --- apps/openmw/mwmechanics/actors.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmechanics/actors.cpp b/apps/openmw/mwmechanics/actors.cpp index 36d2a8360..2ce77ebd2 100644 --- a/apps/openmw/mwmechanics/actors.cpp +++ b/apps/openmw/mwmechanics/actors.cpp @@ -154,8 +154,17 @@ void getRestorationPerHourOfSleep (const MWWorld::Ptr& ptr, float& health, float namespace MWMechanics { - - const float aiProcessingDistance = 7168; + /* + Start of tes3mp change (major) + + Multiplayer needs AI processing to not have a distance limit, at least until a better authority system + is implemented for LocalActors + */ + //const float aiProcessingDistance = 7168; + const float aiProcessingDistance = 8192 * 50; + /* + End of tes3mp change (major) + */ const float sqrAiProcessingDistance = aiProcessingDistance*aiProcessingDistance; class SoulTrap : public MWMechanics::EffectSourceVisitor