aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSignpostMarv2012-08-24 17:25:37 +0100
committerMelanie2012-08-25 21:04:43 +0100
commit3d8f393fbe0072d93fc8303741420bb36c844d44 (patch)
tree468d71140a5dccbd438474acabe4e72d76849c80
parentMerge commit '2a2e120470ea530ea0a6f035c5cf28247f94532c' into careminster (diff)
downloadopensim-SC-3d8f393fbe0072d93fc8303741420bb36c844d44.zip
opensim-SC-3d8f393fbe0072d93fc8303741420bb36c844d44.tar.gz
opensim-SC-3d8f393fbe0072d93fc8303741420bb36c844d44.tar.bz2
opensim-SC-3d8f393fbe0072d93fc8303741420bb36c844d44.tar.xz
refactoring to local variable for cleaner code
-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 efd1f39..43cfea2 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -2257,11 +2257,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2257 CheckThreatLevel(ThreatLevel.High, "osGetLinkPrimitiveParams"); 2257 CheckThreatLevel(ThreatLevel.High, "osGetLinkPrimitiveParams");
2258 m_host.AddScriptLPS(1); 2258 m_host.AddScriptLPS(1);
2259 InitLSL(); 2259 InitLSL();
2260 // One needs to cast m_LSL_Api because we're using functions not
2261 // on the ILSL_Api interface.
2262 LSL_Api LSL_Api = (LSL_Api)m_LSL_Api;
2260 LSL_List retVal = new LSL_List(); 2263 LSL_List retVal = new LSL_List();
2261 List<SceneObjectPart> parts = ((LSL_Api)m_LSL_Api).GetLinkParts(linknumber); 2264 List<SceneObjectPart> parts = LSL_Api.GetLinkParts(linknumber);
2262 foreach (SceneObjectPart part in parts) 2265 foreach (SceneObjectPart part in parts)
2263 { 2266 {
2264 ((LSL_Api)m_LSL_Api).GetPrimParams(part, rules, ref retVal); 2267 LSL_Api.GetPrimParams(part, rules, ref retVal);
2265 } 2268 }
2266 return retVal; 2269 return retVal;
2267 } 2270 }