diff options
author | Makopoppo | 2011-07-07 23:38:22 +0900 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-07-09 01:08:26 +0100 |
commit | b983f38e2abc4ee28a572c680ba267138064ed5c (patch) | |
tree | 2c9da4d066c040d362ac39055d9ccf3c06a8fe54 /OpenSim/Region/ScriptEngine/Shared | |
parent | Made some LSL_Constant or LS_Constant raw int values (diff) | |
download | opensim-SC_OLD-b983f38e2abc4ee28a572c680ba267138064ed5c.zip opensim-SC_OLD-b983f38e2abc4ee28a572c680ba267138064ed5c.tar.gz opensim-SC_OLD-b983f38e2abc4ee28a572c680ba267138064ed5c.tar.bz2 opensim-SC_OLD-b983f38e2abc4ee28a572c680ba267138064ed5c.tar.xz |
lsGetWindlightScene() returns raw int value, which makes unable to compare to another value with llListFindList()
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs index 645566e..80daf5b 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs | |||
@@ -130,7 +130,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
130 | int idx = 0; | 130 | int idx = 0; |
131 | while (idx < rules.Length) | 131 | while (idx < rules.Length) |
132 | { | 132 | { |
133 | uint rule = (uint)rules.GetLSLIntegerItem(idx); | 133 | LSL_Integer ruleInt = rules.GetLSLIntegerItem(idx); |
134 | uint rule = (uint)ruleInt; | ||
134 | LSL_List toadd = new LSL_List(); | 135 | LSL_List toadd = new LSL_List(); |
135 | 136 | ||
136 | switch (rule) | 137 | switch (rule) |
@@ -247,7 +248,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
247 | 248 | ||
248 | if (toadd.Length > 0) | 249 | if (toadd.Length > 0) |
249 | { | 250 | { |
250 | values.Add(rule); | 251 | values.Add(ruleInt); |
251 | values.Add(toadd.Data[0]); | 252 | values.Add(toadd.Data[0]); |
252 | } | 253 | } |
253 | idx++; | 254 | idx++; |