diff options
author | Melanie | 2012-06-14 00:10:52 +0100 |
---|---|---|
committer | Melanie | 2012-06-14 00:10:52 +0100 |
commit | d893e54f4b4d3b4a8f6bfa3c8744487527a194a0 (patch) | |
tree | 1601e04322dba9c6c4ae2412c92821f93aca5c7b /OpenSim/Region/ScriptEngine | |
parent | Merge branch 'master' into careminster (diff) | |
parent | minor: refactor part of LLClientView.ProcessEntityUpdates() to remove duplica... (diff) | |
download | opensim-SC_OLD-d893e54f4b4d3b4a8f6bfa3c8744487527a194a0.zip opensim-SC_OLD-d893e54f4b4d3b4a8f6bfa3c8744487527a194a0.tar.gz opensim-SC_OLD-d893e54f4b4d3b4a8f6bfa3c8744487527a194a0.tar.bz2 opensim-SC_OLD-d893e54f4b4d3b4a8f6bfa3c8744487527a194a0.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 713f832..5aa0678 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -11737,7 +11737,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
11737 | { | 11737 | { |
11738 | Tri t1 = new Tri(); | 11738 | Tri t1 = new Tri(); |
11739 | Tri t2 = new Tri(); | 11739 | Tri t2 = new Tri(); |
11740 | 11740 | ||
11741 | Vector3 p1 = new Vector3(x-1, y-1, (float)heightfield[x-1, y-1]); | 11741 | Vector3 p1 = new Vector3(x-1, y-1, (float)heightfield[x-1, y-1]); |
11742 | Vector3 p2 = new Vector3(x, y-1, (float)heightfield[x, y-1]); | 11742 | Vector3 p2 = new Vector3(x, y-1, (float)heightfield[x, y-1]); |
11743 | Vector3 p3 = new Vector3(x, y, (float)heightfield[x, y]); | 11743 | Vector3 p3 = new Vector3(x, y, (float)heightfield[x, y]); |
@@ -11778,7 +11778,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
11778 | // sometimes | 11778 | // sometimes |
11779 | if (Math.Abs(b) < 0.000001) | 11779 | if (Math.Abs(b) < 0.000001) |
11780 | continue; | 11780 | continue; |
11781 | 11781 | ||
11782 | double r = a / b; | 11782 | double r = a / b; |
11783 | 11783 | ||
11784 | // ray points away from plane | 11784 | // ray points away from plane |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 8237b60..795376b 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -1976,7 +1976,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1976 | { | 1976 | { |
1977 | string retval = String.Empty; | 1977 | string retval = String.Empty; |
1978 | IConfigSource config = m_ScriptEngine.ConfigSource; | 1978 | IConfigSource config = m_ScriptEngine.ConfigSource; |
1979 | string url = config.Configs["GridInfo"].GetString("GridInfoURI", String.Empty); | 1979 | string url = null; |
1980 | |||
1981 | IConfig gridInfoConfig = config.Configs["GridInfo"]; | ||
1982 | |||
1983 | if (gridInfoConfig != null) | ||
1984 | url = gridInfoConfig.GetString("GridInfoURI", String.Empty); | ||
1980 | 1985 | ||
1981 | if (String.IsNullOrEmpty(url)) | 1986 | if (String.IsNullOrEmpty(url)) |
1982 | return "Configuration Error!"; | 1987 | return "Configuration Error!"; |