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/LlGetMassMKS
0.8.0.3
Talun 2014-05-02 19:48:22 +01:00 committed by Justin Clark-Casey (justincc)
parent 539165e6bd
commit c9742c826d
3 changed files with 13 additions and 0 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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();