From 6ccb9948ab9df1004862f997150edc5869ddbbbf Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Wed, 13 Aug 2008 14:06:21 +0000 Subject: Mantis#1925. Thank you, homerHorwitz for a patch that: This fixes the coordinates returned by doing a llRequestInventoryData on a landmark. --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index d7633d8..17e8253 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -2917,10 +2917,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api { AssetLandmark lm = new AssetLandmark(a); - region += lm.Position; + float rx = (uint)(lm.RegionHandle >> 32); + float ry = (uint)lm.RegionHandle; + region = lm.Position + new LLVector3(rx, ry, 0) - region; string reply = region.ToString(); - AsyncCommands. DataserverPlugin.DataserverReply(i.ToString(), reply); -- cgit v1.1