mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Merge branch 'master' into careminster
Conflicts: OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
This commit is contained in:
@@ -11737,7 +11737,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
Tri t1 = new Tri();
|
||||
Tri t2 = new Tri();
|
||||
|
||||
|
||||
Vector3 p1 = new Vector3(x-1, y-1, (float)heightfield[x-1, y-1]);
|
||||
Vector3 p2 = new Vector3(x, y-1, (float)heightfield[x, y-1]);
|
||||
Vector3 p3 = new Vector3(x, y, (float)heightfield[x, y]);
|
||||
@@ -11778,7 +11778,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
// sometimes
|
||||
if (Math.Abs(b) < 0.000001)
|
||||
continue;
|
||||
|
||||
|
||||
double r = a / b;
|
||||
|
||||
// ray points away from plane
|
||||
|
||||
@@ -1976,7 +1976,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
string retval = String.Empty;
|
||||
IConfigSource config = m_ScriptEngine.ConfigSource;
|
||||
string url = config.Configs["GridInfo"].GetString("GridInfoURI", String.Empty);
|
||||
string url = null;
|
||||
|
||||
IConfig gridInfoConfig = config.Configs["GridInfo"];
|
||||
|
||||
if (gridInfoConfig != null)
|
||||
url = gridInfoConfig.GetString("GridInfoURI", String.Empty);
|
||||
|
||||
if (String.IsNullOrEmpty(url))
|
||||
return "Configuration Error!";
|
||||
|
||||
Reference in New Issue
Block a user