aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/CodeTools
diff options
context:
space:
mode:
authorMelanie Thielker2008-11-06 23:10:49 +0000
committerMelanie Thielker2008-11-06 23:10:49 +0000
commit9e4fc8e03a0b44032ee399f1b07e45d17d2ddd77 (patch)
tree5055f1e6ae0ec9a0e43c3949efb1841db73d6f94 /OpenSim/Region/ScriptEngine/Shared/CodeTools
parentUpdate svn properties, minor formatting cleanup. (diff)
downloadopensim-SC-9e4fc8e03a0b44032ee399f1b07e45d17d2ddd77.zip
opensim-SC-9e4fc8e03a0b44032ee399f1b07e45d17d2ddd77.tar.gz
opensim-SC-9e4fc8e03a0b44032ee399f1b07e45d17d2ddd77.tar.bz2
opensim-SC-9e4fc8e03a0b44032ee399f1b07e45d17d2ddd77.tar.xz
Mantis #2571
Thank you, idb, for a patch that fixes the jump function in LSL.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/CodeTools')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
index 795d38f..37d29f7 100644
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
@@ -474,7 +474,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
474 /// <returns>String containing C# code for JumpLabel jl.</returns> 474 /// <returns>String containing C# code for JumpLabel jl.</returns>
475 private string GenerateJumpLabel(JumpLabel jl) 475 private string GenerateJumpLabel(JumpLabel jl)
476 { 476 {
477 return Generate(String.Format("{0}:\n", jl.LabelName), jl); 477 return Generate(String.Format("{0}:", CheckName(jl.LabelName)), jl) + " NoOp();\n";
478 } 478 }
479 479
480 /// <summary> 480 /// <summary>
@@ -484,7 +484,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
484 /// <returns>String containing C# code for JumpStatement js.</returns> 484 /// <returns>String containing C# code for JumpStatement js.</returns>
485 private string GenerateJumpStatement(JumpStatement js) 485 private string GenerateJumpStatement(JumpStatement js)
486 { 486 {
487 return Generate(String.Format("goto {0}", js.TargetName), js); 487 return Generate(String.Format("goto {0}", CheckName(js.TargetName)), js);
488 } 488 }
489 489
490 /// <summary> 490 /// <summary>