diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index e6092d4..59a3618 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -9101,10 +9101,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
9101 | // do that one last, it will cause a ParcelPropertiesUpdate | 9101 | // do that one last, it will cause a ParcelPropertiesUpdate |
9102 | landObject.SetMediaUrl(url); | 9102 | landObject.SetMediaUrl(url); |
9103 | 9103 | ||
9104 | // now send to all (non-child) agents | 9104 | // now send to all (non-child) agents in the parcel |
9105 | World.ForEachScenePresence(delegate(ScenePresence sp) | 9105 | World.ForEachScenePresence(delegate(ScenePresence sp) |
9106 | { | 9106 | { |
9107 | if (!sp.IsChildAgent) | 9107 | if (!sp.IsChildAgent && (sp.currentParcelUUID == landData.GlobalID)) |
9108 | { | 9108 | { |
9109 | sp.ControllingClient.SendParcelMediaUpdate(landData.MediaURL, | 9109 | sp.ControllingClient.SendParcelMediaUpdate(landData.MediaURL, |
9110 | landData.MediaID, | 9110 | landData.MediaID, |
@@ -9134,10 +9134,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
9134 | // the commandList contained a start/stop/... command, too | 9134 | // the commandList contained a start/stop/... command, too |
9135 | if (presence == null) | 9135 | if (presence == null) |
9136 | { | 9136 | { |
9137 | // send to all (non-child) agents | 9137 | // send to all (non-child) agents in the parcel |
9138 | World.ForEachScenePresence(delegate(ScenePresence sp) | 9138 | World.ForEachScenePresence(delegate(ScenePresence sp) |
9139 | { | 9139 | { |
9140 | if (!sp.IsChildAgent) | 9140 | if (!sp.IsChildAgent && (sp.currentParcelUUID == landData.GlobalID)) |
9141 | { | 9141 | { |
9142 | sp.ControllingClient.SendParcelMediaCommand(0x4, // TODO what is this? | 9142 | sp.ControllingClient.SendParcelMediaCommand(0x4, // TODO what is this? |
9143 | (ParcelMediaCommandEnum)commandToSend, | 9143 | (ParcelMediaCommandEnum)commandToSend, |