corrade-lsl-templates – Diff between revs 11 and 15

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 11 Rev 15
Line 224... Line 224...
224 if(llGetSubString(data, 0, 0) != 224 if(llGetSubString(data, 0, 0) !=
225 wasKeyValueGet("command", configuration)) 225 wasKeyValueGet("command", configuration))
226 return; 226 return;
Line 227... Line 227...
227 227
228 // Check if the command matches the current module. 228 // Check if the command matches the current module.
229 list command = llParseString2List(data, 229 list command = llParseString2List(data, [" "], []);
230 [wasKeyValueGet("command", configuration), " "], ["@"]); 230 if(llList2String(command, 0) !=
231 if(llList2String(command, 0) != "roll") 231 wasKeyValueGet("command", configuration) + "roll")
-   232 return;
-   233
-   234 // Remove command.
Line 232... Line 235...
232 return; 235 command = llDeleteSubList(command, 0, 0);
233 236
234 list range = wasCSVToList( 237 list range = wasCSVToList(
Line 235... Line 238...
235 wasKeyValueGet("roll range", configuration) 238 wasKeyValueGet("roll range", configuration)
236 ); 239 );
237 240
238 integer roll = llList2Integer(command, 1); 241 integer roll = llList2Integer(command, 0);
239 if(roll < llList2Integer(range, 0) || roll > llList2Integer(range, 1)) { 242 if(roll < llList2Integer(range, 0) || roll > llList2Integer(range, 1)) {
240 data = "Value should be within bounds [" + 243 data = "Value should be within bounds [" +