mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 13:55:35 +08:00
some cleanup to last patch from Bill Blight and Vincent (mantis 8738)
This commit is contained in:
@@ -1984,22 +1984,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
CheckThreatLevel(ThreatLevel.VeryLow, "osSetParcelMusicURL");
|
||||
|
||||
ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition);
|
||||
if (land != null)
|
||||
land.SetMusicUrl(url);
|
||||
}
|
||||
|
||||
land.SetMusicUrl(url);
|
||||
|
||||
}
|
||||
public void osSetParcelMediaURL(string url)
|
||||
public void osSetParcelMediaURL(LSL_String url)
|
||||
{
|
||||
// What actually is the difference to the LL function?
|
||||
//
|
||||
CheckThreatLevel(ThreatLevel.VeryLow, "osSetParcelMediaURL");
|
||||
|
||||
ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition);
|
||||
|
||||
if (land.LandData.OwnerID != m_host.OwnerID)
|
||||
return;
|
||||
|
||||
land.SetMediaUrl(url);
|
||||
if (land != null)
|
||||
land.SetMediaUrl(url);
|
||||
}
|
||||
|
||||
public void osSetParcelSIPAddress(string SIPAddress)
|
||||
|
||||
@@ -142,8 +142,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||
void osRegionNotice(string msg);
|
||||
void osRegionNotice(LSL_Key agentID, string msg);
|
||||
bool osConsoleCommand(string Command);
|
||||
void osSetParcelMusicURL(string url);
|
||||
void osSetParcelMediaURL(string url);
|
||||
void osSetParcelMusicURL(LSL_String url);
|
||||
void osSetParcelMediaURL(LSL_String url);
|
||||
void osSetPrimFloatOnWater(int floatYN);
|
||||
void osSetParcelSIPAddress(string SIPAddress);
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
public partial class ScriptBaseClass
|
||||
{
|
||||
// SCRIPTS CONSTANTS
|
||||
public static readonly LSLInteger OS_APIVERSION = 13;
|
||||
public static readonly LSLInteger OS_APIVERSION = 14;
|
||||
|
||||
public static readonly LSLInteger TRUE = 1;
|
||||
public static readonly LSLInteger FALSE = 0;
|
||||
|
||||
@@ -235,12 +235,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
return m_OSSL_Functions.osConsoleCommand(Command);
|
||||
}
|
||||
|
||||
public void osSetParcelMusicURL(string url)
|
||||
public void osSetParcelMusicURL(LSL_String url)
|
||||
{
|
||||
m_OSSL_Functions.osSetParcelMusicURL(url);
|
||||
}
|
||||
|
||||
public void osSetParcelMediaURL(string url)
|
||||
public void osSetParcelMediaURL(LSL_String url)
|
||||
{
|
||||
m_OSSL_Functions.osSetParcelMediaURL(url);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user