mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
- Fix wrong order of max/min usage for clipping. Uses Util.Clamp now
- Add support for immediate switching of Music/Media URLs. Radio-scripts should work now.
This commit is contained in:
@@ -294,8 +294,8 @@ namespace OpenSim.Region.Environment.Modules.World.Land
|
||||
try
|
||||
{
|
||||
over =
|
||||
m_scene.LandChannel.GetLandObject((int) Math.Max(255, Math.Min(0, Math.Round(avatars[i].AbsolutePosition.X))),
|
||||
(int) Math.Max(255, Math.Min(0, Math.Round(avatars[i].AbsolutePosition.Y))));
|
||||
m_scene.LandChannel.GetLandObject(Util.Clamp<int>((int)Math.Round(avatars[i].AbsolutePosition.X), 0, 255),
|
||||
Util.Clamp<int>((int)Math.Round(avatars[i].AbsolutePosition.Y), 0, 255));
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
@@ -3625,6 +3625,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
else
|
||||
{
|
||||
land.landData.MusicURL = url;
|
||||
land.sendLandUpdateToAvatarsOverMe();
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -3641,6 +3642,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
else
|
||||
{
|
||||
land.landData.MediaURL = url;
|
||||
land.sendLandUpdateToAvatarsOverMe();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user