diff options
author | Melanie | 2010-05-10 04:05:04 +0100 |
---|---|---|
committer | Melanie | 2010-05-10 04:05:04 +0100 |
commit | fada4cb6c483c34a286792a92eeab1bd289dd76c (patch) | |
tree | 55d97abbdee19360d3fc8a0546e4315d4a0f096d /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |
parent | Merge branch 'master' into careminster-presence-refactor (diff) | |
parent | Return agents when angle is PI (diff) | |
download | opensim-SC_OLD-fada4cb6c483c34a286792a92eeab1bd289dd76c.zip opensim-SC_OLD-fada4cb6c483c34a286792a92eeab1bd289dd76c.tar.gz opensim-SC_OLD-fada4cb6c483c34a286792a92eeab1bd289dd76c.tar.bz2 opensim-SC_OLD-fada4cb6c483c34a286792a92eeab1bd289dd76c.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index ca0feed..68f6e7b 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -5824,7 +5824,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5824 | public LSL_String llGetLandOwnerAt(LSL_Vector pos) | 5824 | public LSL_String llGetLandOwnerAt(LSL_Vector pos) |
5825 | { | 5825 | { |
5826 | m_host.AddScriptLPS(1); | 5826 | m_host.AddScriptLPS(1); |
5827 | return World.LandChannel.GetLandObject((float)pos.x, (float)pos.y).LandData.OwnerID.ToString(); | 5827 | ILandObject land = World.LandChannel.GetLandObject((float)pos.x, (float)pos.y); |
5828 | if (land == null) | ||
5829 | return UUID.Zero.ToString(); | ||
5830 | return land.LandData.OwnerID.ToString(); | ||
5828 | } | 5831 | } |
5829 | 5832 | ||
5830 | /// <summary> | 5833 | /// <summary> |