diff options
author | Tedd Hansen | 2007-08-13 20:55:07 +0000 |
---|---|---|
committer | Tedd Hansen | 2007-08-13 20:55:07 +0000 |
commit | 79dc1a4f7d4196d14bd51cb0839b9dd8c644cab7 (patch) | |
tree | e07b695666f9fe6e90a674706ebdc9509dd33065 /OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs | |
parent | committed a test version of OpenSimAssetSet.xml in last commit, so fixing that. (diff) | |
download | opensim-SC-79dc1a4f7d4196d14bd51cb0839b9dd8c644cab7.zip opensim-SC-79dc1a4f7d4196d14bd51cb0839b9dd8c644cab7.tar.gz opensim-SC-79dc1a4f7d4196d14bd51cb0839b9dd8c644cab7.tar.bz2 opensim-SC-79dc1a4f7d4196d14bd51cb0839b9dd8c644cab7.tar.xz |
Common script for all objects (Default.lsl). ScriptEngine touch_start event now works, but llSay only outputs to server console.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs index 6b0afa9..5c5ac92 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs | |||
@@ -162,7 +162,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | |||
162 | // void dataserver(key query_id, string data) { | 162 | // void dataserver(key query_id, string data) { |
163 | //cache = Regex.Replace(cache, @"([^a-zA-Z_]\s*)((?!if|switch|for)[a-zA-Z_]+\s*\([^\)]*\)[^{]*{)", "$1" + "<STATE>" + "$2", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); | 163 | //cache = Regex.Replace(cache, @"([^a-zA-Z_]\s*)((?!if|switch|for)[a-zA-Z_]+\s*\([^\)]*\)[^{]*{)", "$1" + "<STATE>" + "$2", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); |
164 | //Console.WriteLine("Replacing using statename: " + current_statename); | 164 | //Console.WriteLine("Replacing using statename: " + current_statename); |
165 | cache = Regex.Replace(cache, @"^(\s*)((?!(if|switch|for)[^a-zA-Z0-9_])[a-zA-Z0-9_]*\s*\([^\)]*\)[^;]*\{)", @"$1" + current_statename + "_$2", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); | 165 | cache = Regex.Replace(cache, @"^(\s*)((?!(if|switch|for)[^a-zA-Z0-9_])[a-zA-Z0-9_]*\s*\([^\)]*\)[^;]*\{)", @"public $1" + current_statename + "_event_$2", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); |
166 | } | 166 | } |
167 | 167 | ||
168 | ret += cache; | 168 | ret += cache; |