aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorSignpostMarv2012-08-24 17:25:37 +0100
committerJustin Clark-Casey (justincc)2012-08-25 02:30:23 +0100
commit5203665bb2d68c6a4e0ea3180334b607db6ab1ce (patch)
treedd6f3ad008348d0cc405a2555c3993022259af6c /OpenSim
parentsince we will be making the Get return type the remaining ruleset as with the... (diff)
downloadopensim-SC_OLD-5203665bb2d68c6a4e0ea3180334b607db6ab1ce.zip
opensim-SC_OLD-5203665bb2d68c6a4e0ea3180334b607db6ab1ce.tar.gz
opensim-SC_OLD-5203665bb2d68c6a4e0ea3180334b607db6ab1ce.tar.bz2
opensim-SC_OLD-5203665bb2d68c6a4e0ea3180334b607db6ab1ce.tar.xz
refactoring to local variable for cleaner code
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index a391b73..927f37c 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -2246,11 +2246,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2246 CheckThreatLevel(ThreatLevel.High, "osGetLinkPrimitiveParams"); 2246 CheckThreatLevel(ThreatLevel.High, "osGetLinkPrimitiveParams");
2247 m_host.AddScriptLPS(1); 2247 m_host.AddScriptLPS(1);
2248 InitLSL(); 2248 InitLSL();
2249 // One needs to cast m_LSL_Api because we're using functions not
2250 // on the ILSL_Api interface.
2251 LSL_Api LSL_Api = (LSL_Api)m_LSL_Api;
2249 LSL_List retVal = new LSL_List(); 2252 LSL_List retVal = new LSL_List();
2250 List<SceneObjectPart> parts = ((LSL_Api)m_LSL_Api).GetLinkParts(linknumber); 2253 List<SceneObjectPart> parts = LSL_Api.GetLinkParts(linknumber);
2251 foreach (SceneObjectPart part in parts) 2254 foreach (SceneObjectPart part in parts)
2252 { 2255 {
2253 ((LSL_Api)m_LSL_Api).GetPrimParams(part, rules, ref retVal); 2256 LSL_Api.GetPrimParams(part, rules, ref retVal);
2254 } 2257 }
2255 return retVal; 2258 return retVal;
2256 } 2259 }