aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-14 16:55:31 +1000
committerDavid Walter Seikel2014-05-14 16:55:31 +1000
commite92a750bc91d2ad7750d76a38df5e95d8ed011fb (patch)
tree4ff3cd4090539787da0fd588020d478e3bf3bf46
parentComment out possible left over cruft. (diff)
downloadSledjHamr-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.lua4
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
687function --[[list]] LSL.llListSort(--[[list]] l,--[[integer]] stride,--[[integer]] ascending) 687function --[[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;
915end 913end
916 914