diff options
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-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 f55bd12..3249ae2 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -9637,10 +9637,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
9637 | // do that one last, it will cause a ParcelPropertiesUpdate | 9637 | // do that one last, it will cause a ParcelPropertiesUpdate |
9638 | landObject.SetMediaUrl(url); | 9638 | landObject.SetMediaUrl(url); |
9639 | 9639 | ||
9640 | // now send to all (non-child) agents | 9640 | // now send to all (non-child) agents in the parcel |
9641 | World.ForEachScenePresence(delegate(ScenePresence sp) | 9641 | World.ForEachScenePresence(delegate(ScenePresence sp) |
9642 | { | 9642 | { |
9643 | if (!sp.IsChildAgent) | 9643 | if (!sp.IsChildAgent && (sp.currentParcelUUID == landData.GlobalID)) |
9644 | { | 9644 | { |
9645 | sp.ControllingClient.SendParcelMediaUpdate(landData.MediaURL, | 9645 | sp.ControllingClient.SendParcelMediaUpdate(landData.MediaURL, |
9646 | landData.MediaID, | 9646 | landData.MediaID, |
@@ -9670,10 +9670,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
9670 | // the commandList contained a start/stop/... command, too | 9670 | // the commandList contained a start/stop/... command, too |
9671 | if (presence == null) | 9671 | if (presence == null) |
9672 | { | 9672 | { |
9673 | // send to all (non-child) agents | 9673 | // send to all (non-child) agents in the parcel |
9674 | World.ForEachScenePresence(delegate(ScenePresence sp) | 9674 | World.ForEachScenePresence(delegate(ScenePresence sp) |
9675 | { | 9675 | { |
9676 | if (!sp.IsChildAgent) | 9676 | if (!sp.IsChildAgent && (sp.currentParcelUUID == landData.GlobalID)) |
9677 | { | 9677 | { |
9678 | sp.ControllingClient.SendParcelMediaCommand(0x4, // TODO what is this? | 9678 | sp.ControllingClient.SendParcelMediaCommand(0x4, // TODO what is this? |
9679 | (ParcelMediaCommandEnum)commandToSend, | 9679 | (ParcelMediaCommandEnum)commandToSend, |