diff options
author | David Walter Seikel | 2014-05-14 16:55:31 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-14 16:55:31 +1000 |
commit | e92a750bc91d2ad7750d76a38df5e95d8ed011fb (patch) | |
tree | 4ff3cd4090539787da0fd588020d478e3bf3bf46 | |
parent | Comment out possible left over cruft. (diff) | |
download | SledjHamr-e92a750bc91d2ad7750d76a38df5e95d8ed011fb.zip SledjHamr-e92a750bc91d2ad7750d76a38df5e95d8ed011fb.tar.gz SledjHamr-e92a750bc91d2ad7750d76a38df5e95d8ed011fb.tar.bz2 SledjHamr-e92a750bc91d2ad7750d76a38df5e95d8ed011fb.tar.xz |
Fix llListSort(). That's what you get for mixing three different languages that don't agree an array origin.
-rw-r--r-- | lib/LSL.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/LSL.lua b/lib/LSL.lua index fe5c349..ee7c5bc 100644 --- a/lib/LSL.lua +++ b/lib/LSL.lua | |||
@@ -686,7 +686,7 @@ end | |||
686 | 686 | ||
687 | function --[[list]] LSL.llListSort(--[[list]] l,--[[integer]] stride,--[[integer]] ascending) | 687 | function --[[list]] LSL.llListSort(--[[list]] l,--[[integer]] stride,--[[integer]] ascending) |
688 | local result = {} | 688 | local result = {} |
689 | local x = 0 | 689 | local x = 1 |
690 | 690 | ||
691 | -- TODO - Deal with stride and ascending. | 691 | -- TODO - Deal with stride and ascending. |
692 | for i = 1,#l do | 692 | for i = 1,#l do |
@@ -806,7 +806,6 @@ function waitAndProcess(returnWanted) | |||
806 | return result1 | 806 | return result1 |
807 | end | 807 | end |
808 | -- Otherwise, just run it and keep looping. | 808 | -- Otherwise, just run it and keep looping. |
809 | -- print("RUNNING " .. result1) | ||
810 | -- TODO - Not sure why I had this here. "sid" is not set anywhere, and SID would just send it to ourselves. | 809 | -- TODO - Not sure why I had this here. "sid" is not set anywhere, and SID would just send it to ourselves. |
811 | -- status, errorMsg = luaproc.send(sid, result1) | 810 | -- status, errorMsg = luaproc.send(sid, result1) |
812 | -- if not status then | 811 | -- if not status then |
@@ -910,7 +909,6 @@ function LSL.listConcat(a, b) | |||
910 | local result = a | 909 | local result = a |
911 | 910 | ||
912 | table.insert(result, i + 1, b) | 911 | table.insert(result, i + 1, b) |
913 | |||
914 | return result; | 912 | return result; |
915 | end | 913 | end |
916 | 914 | ||