aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/Test sim
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-03 22:36:25 +1000
committerDavid Walter Seikel2012-02-03 22:36:25 +1000
commitba894de3014f02d0c6889b5e2df821b97a265bdb (patch)
tree075e7f15c65354f23c201c0197e7d252664d44f9 /LuaSL/Test sim
parentSeparate else and if if it's not an actual elseif. (diff)
downloadSledjHamr-ba894de3014f02d0c6889b5e2df821b97a265bdb.zip
SledjHamr-ba894de3014f02d0c6889b5e2df821b97a265bdb.tar.gz
SledjHamr-ba894de3014f02d0c6889b5e2df821b97a265bdb.tar.bz2
SledjHamr-ba894de3014f02d0c6889b5e2df821b97a265bdb.tar.xz
Assignments in the middle of expressions is legal in LSL, but not in Lua. Bump that problem until later.
Diffstat (limited to 'LuaSL/Test sim')
-rw-r--r--LuaSL/Test sim/objects/onefang's test bed/~menucfg.lsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/LuaSL/Test sim/objects/onefang's test bed/~menucfg.lsl b/LuaSL/Test sim/objects/onefang's test bed/~menucfg.lsl
index d38843d..a258fb8 100644
--- a/LuaSL/Test sim/objects/onefang's test bed/~menucfg.lsl
+++ b/LuaSL/Test sim/objects/onefang's test bed/~menucfg.lsl
@@ -254,10 +254,12 @@ state load {
254 254
255 integer ix; 255 integer ix;
256 integer count; 256 integer count;
257 while ((ix = myListFind(buttons, "-")) != -1) { 257 ix = myListFind(buttons, "-");
258 while (ix != -1) {
258 ++count; 259 ++count;
259 buttons = llDeleteSubList(buttons, ix, ix); 260 buttons = llDeleteSubList(buttons, ix, ix);
260 commands = llDeleteSubList(commands, ix, ix); 261 commands = llDeleteSubList(commands, ix, ix);
262 ix = myListFind(buttons, "-");
261 } 263 }
262 if (count) { 264 if (count) {
263 for (ix = 1; ix < llGetListLength(buttonindex); ++ix) { 265 for (ix = 1; ix < llGetListLength(buttonindex); ++ix) {