Mantis 7146 The lsl function llGetMassMKS is not implemented
This patch implements llGetMassMKS as it is described in the wiki http://wiki.secondlife.com/wiki/LlGetMassMKS0.8.0.3
parent
539165e6bd
commit
c9742c826d
|
@ -3162,6 +3162,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
}
|
||||
}
|
||||
|
||||
public LSL_Float llGetMassMKS()
|
||||
{
|
||||
// this is what the wiki says it does!
|
||||
// http://wiki.secondlife.com/wiki/LlGetMassMKS
|
||||
return llGetMass() * 100.0;
|
||||
}
|
||||
|
||||
public void llCollisionFilter(string name, string id, int accept)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
|
|
@ -149,6 +149,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
|||
LSL_Vector llGetLocalPos();
|
||||
LSL_Rotation llGetLocalRot();
|
||||
LSL_Float llGetMass();
|
||||
LSL_Float llGetMassMKS();
|
||||
LSL_Integer llGetMemoryLimit();
|
||||
void llGetNextEmail(string address, string subject);
|
||||
LSL_String llGetNotecardLine(string name, int line);
|
||||
|
|
|
@ -584,6 +584,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
|||
return m_LSL_Functions.llGetMass();
|
||||
}
|
||||
|
||||
public LSL_Float llGetMassMKS()
|
||||
{
|
||||
return m_LSL_Functions.llGetMassMKS();
|
||||
}
|
||||
|
||||
public LSL_Integer llGetMemoryLimit()
|
||||
{
|
||||
return m_LSL_Functions.llGetMemoryLimit();
|
||||
|
|
Loading…
Reference in New Issue