From 513ae92bbb4a37c7e95dbd0c5c252862d7658b1c Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 7 Apr 2009 19:15:26 +0000 Subject: * Apply http://opensimulator.org/mantis/view.php?id=3406 * Makes Second Life environment sensor ranges and maximum response number configurable * Thanks Intimidated --- .../ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/Shared') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs index f132518..cc4d88b 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs @@ -43,6 +43,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins public SensorRepeat(AsyncCommandManager CmdManager) { m_CmdManager = CmdManager; + maximumRange = CmdManager.m_ScriptEngine.Config.GetDouble("SensorMaxRange", 96.0d); + maximumToReturn = CmdManager.m_ScriptEngine.Config.GetInt("SensorMaxResults", 16); } private Object SenseLock = new Object(); -- cgit v1.1