aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
authorroot2011-06-30 00:26:03 +0100
committerroot2011-06-30 00:26:03 +0100
commit5f927dc104aac48707c0ea2ff77a3410c3857ecc (patch)
tree123324ae910db49349e7b07749f49cd172a3d037 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation
parentRemove friends debug spam (diff)
parentDon't follow inventory links of links. (diff)
downloadopensim-SC-5f927dc104aac48707c0ea2ff77a3410c3857ecc.zip
opensim-SC-5f927dc104aac48707c0ea2ff77a3410c3857ecc.tar.gz
opensim-SC-5f927dc104aac48707c0ea2ff77a3410c3857ecc.tar.bz2
opensim-SC-5f927dc104aac48707c0ea2ff77a3410c3857ecc.tar.xz
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs18
1 files changed, 10 insertions, 8 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 39e1a27..2b8155f 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -977,7 +977,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
977 977
978 public string osDrawPolygon(string drawList, LSL_List x, LSL_List y) 978 public string osDrawPolygon(string drawList, LSL_List x, LSL_List y)
979 { 979 {
980 CheckThreatLevel(ThreatLevel.None, "osDrawFilledPolygon"); 980 CheckThreatLevel(ThreatLevel.None, "osDrawPolygon");
981 981
982 m_host.AddScriptLPS(1); 982 m_host.AddScriptLPS(1);
983 983
@@ -1248,7 +1248,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1248 return String.Empty; 1248 return String.Empty;
1249 } 1249 }
1250 1250
1251 public void osSetWindParam(string plugin, string param, float value) 1251 public void osSetWindParam(string plugin, string param, LSL_Float value)
1252 { 1252 {
1253 CheckThreatLevel(ThreatLevel.VeryLow, "osSetWindParam"); 1253 CheckThreatLevel(ThreatLevel.VeryLow, "osSetWindParam");
1254 m_host.AddScriptLPS(1); 1254 m_host.AddScriptLPS(1);
@@ -1258,13 +1258,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1258 { 1258 {
1259 try 1259 try
1260 { 1260 {
1261 module.WindParamSet(plugin, param, value); 1261 module.WindParamSet(plugin, param, (float)value);
1262 } 1262 }
1263 catch (Exception) { } 1263 catch (Exception) { }
1264 } 1264 }
1265 } 1265 }
1266 1266
1267 public float osGetWindParam(string plugin, string param) 1267 public LSL_Float osGetWindParam(string plugin, string param)
1268 { 1268 {
1269 CheckThreatLevel(ThreatLevel.VeryLow, "osGetWindParam"); 1269 CheckThreatLevel(ThreatLevel.VeryLow, "osGetWindParam");
1270 m_host.AddScriptLPS(1); 1270 m_host.AddScriptLPS(1);
@@ -1416,7 +1416,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1416 { 1416 {
1417 // What actually is the difference to the LL function? 1417 // What actually is the difference to the LL function?
1418 // 1418 //
1419 CheckThreatLevel(ThreatLevel.VeryLow, "osSetParcelMediaURL"); 1419 CheckThreatLevel(ThreatLevel.VeryLow, "osSetParcelSIPAddress");
1420 1420
1421 m_host.AddScriptLPS(1); 1421 m_host.AddScriptLPS(1);
1422 1422
@@ -2222,12 +2222,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2222 return (int)pws; 2222 return (int)pws;
2223 } 2223 }
2224 2224
2225 public void osSetSpeed(string UUID, float SpeedModifier) 2225 public void osSetSpeed(string UUID, LSL_Float SpeedModifier)
2226 { 2226 {
2227 CheckThreatLevel(ThreatLevel.Moderate, "osSetSpeed"); 2227 CheckThreatLevel(ThreatLevel.Moderate, "osSetSpeed");
2228 m_host.AddScriptLPS(1); 2228 m_host.AddScriptLPS(1);
2229 ScenePresence avatar = World.GetScenePresence(new UUID(UUID)); 2229 ScenePresence avatar = World.GetScenePresence(new UUID(UUID));
2230 avatar.SpeedModifier = SpeedModifier; 2230 avatar.SpeedModifier = (float)SpeedModifier;
2231 } 2231 }
2232 2232
2233 public void osKickAvatar(string FirstName,string SurName,string alert) 2233 public void osKickAvatar(string FirstName,string SurName,string alert)
@@ -2308,14 +2308,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2308 { 2308 {
2309 CheckThreatLevel(ThreatLevel.High, "osGetPrimitiveParams"); 2309 CheckThreatLevel(ThreatLevel.High, "osGetPrimitiveParams");
2310 m_host.AddScriptLPS(1); 2310 m_host.AddScriptLPS(1);
2311 InitLSL();
2311 2312
2312 return m_LSL_Api.GetLinkPrimitiveParamsEx(prim, rules); 2313 return m_LSL_Api.GetLinkPrimitiveParamsEx(prim, rules);
2313 } 2314 }
2314 2315
2315 public void osSetPrimitiveParams(LSL_Key prim, LSL_List rules) 2316 public void osSetPrimitiveParams(LSL_Key prim, LSL_List rules)
2316 { 2317 {
2317 CheckThreatLevel(ThreatLevel.High, "osGetPrimitiveParams"); 2318 CheckThreatLevel(ThreatLevel.High, "osSetPrimitiveParams");
2318 m_host.AddScriptLPS(1); 2319 m_host.AddScriptLPS(1);
2320 InitLSL();
2319 2321
2320 m_LSL_Api.SetPrimitiveParamsEx(prim, rules); 2322 m_LSL_Api.SetPrimitiveParamsEx(prim, rules);
2321 } 2323 }