aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
authorMelanie2010-07-20 21:18:27 +0100
committerMelanie2010-07-20 21:18:27 +0100
commit686837d9edfb2f0ca5ad45faddd426a96a326d97 (patch)
tree275a0d90cc42d2ab10eb9f52cd1668c94e41aa18 /OpenSim/Region/ScriptEngine/Shared/Api
parentWhen a god uses mass permission setting, the V bit is cleared from next (diff)
parentWhen a god uses mass permission setting, the V bit is cleared from next (diff)
downloadopensim-SC_OLD-686837d9edfb2f0ca5ad45faddd426a96a326d97.zip
opensim-SC_OLD-686837d9edfb2f0ca5ad45faddd426a96a326d97.tar.gz
opensim-SC_OLD-686837d9edfb2f0ca5ad45faddd426a96a326d97.tar.bz2
opensim-SC_OLD-686837d9edfb2f0ca5ad45faddd426a96a326d97.tar.xz
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 138bcc9..1d4c235 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -6134,6 +6134,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6134 PSYS_PART_MAX_AGE = 7, 6134 PSYS_PART_MAX_AGE = 7,
6135 PSYS_SRC_ACCEL = 8, 6135 PSYS_SRC_ACCEL = 8,
6136 PSYS_SRC_PATTERN = 9, 6136 PSYS_SRC_PATTERN = 9,
6137 PSYS_SRC_INNERANGLE = 10,
6138 PSYS_SRC_OUTERANGLE = 11,
6137 PSYS_SRC_TEXTURE = 12, 6139 PSYS_SRC_TEXTURE = 12,
6138 PSYS_SRC_BURST_RATE = 13, 6140 PSYS_SRC_BURST_RATE = 13,
6139 PSYS_SRC_BURST_PART_COUNT = 15, 6141 PSYS_SRC_BURST_PART_COUNT = 15,
@@ -6266,6 +6268,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6266 prules.Pattern = (Primitive.ParticleSystem.SourcePattern)tmpi; 6268 prules.Pattern = (Primitive.ParticleSystem.SourcePattern)tmpi;
6267 break; 6269 break;
6268 6270
6271 // PSYS_SRC_INNERANGLE and PSYS_SRC_ANGLE_BEGIN use the same variables. The
6272 // PSYS_SRC_OUTERANGLE and PSYS_SRC_ANGLE_END also use the same variable. The
6273 // client tells the difference between the two by looking at the 0x02 bit in
6274 // the PartFlags variable.
6275 case (int)ScriptBaseClass.PSYS_SRC_INNERANGLE:
6276 tempf = (float)rules.GetLSLFloatItem(i + 1);
6277 prules.InnerAngle = (float)tempf;
6278 prules.PartFlags &= 0xFFFFFFFD; // Make sure new angle format is off.
6279 break;
6280
6281 case (int)ScriptBaseClass.PSYS_SRC_OUTERANGLE:
6282 tempf = (float)rules.GetLSLFloatItem(i + 1);
6283 prules.OuterAngle = (float)tempf;
6284 prules.PartFlags &= 0xFFFFFFFD; // Make sure new angle format is off.
6285 break;
6286
6269 case (int)ScriptBaseClass.PSYS_SRC_TEXTURE: 6287 case (int)ScriptBaseClass.PSYS_SRC_TEXTURE:
6270 prules.Texture = KeyOrName(rules.GetLSLStringItem(i + 1)); 6288 prules.Texture = KeyOrName(rules.GetLSLStringItem(i + 1));
6271 break; 6289 break;
@@ -6322,11 +6340,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6322 case (int)ScriptBaseClass.PSYS_SRC_ANGLE_BEGIN: 6340 case (int)ScriptBaseClass.PSYS_SRC_ANGLE_BEGIN:
6323 tempf = (float)rules.GetLSLFloatItem(i + 1); 6341 tempf = (float)rules.GetLSLFloatItem(i + 1);
6324 prules.InnerAngle = (float)tempf; 6342 prules.InnerAngle = (float)tempf;
6343 prules.PartFlags |= 0x02; // Set new angle format.
6325 break; 6344 break;
6326 6345
6327 case (int)ScriptBaseClass.PSYS_SRC_ANGLE_END: 6346 case (int)ScriptBaseClass.PSYS_SRC_ANGLE_END:
6328 tempf = (float)rules.GetLSLFloatItem(i + 1); 6347 tempf = (float)rules.GetLSLFloatItem(i + 1);
6329 prules.OuterAngle = (float)tempf; 6348 prules.OuterAngle = (float)tempf;
6349 prules.PartFlags |= 0x02; // Set new angle format.
6330 break; 6350 break;
6331 6351
6332 case (int)ScriptBaseClass.PSYS_SRC_INNERANGLE: 6352 case (int)ScriptBaseClass.PSYS_SRC_INNERANGLE: