* fixed script compilation

* reversed //c# - if
  * rightifyed what's actually converted
afrisby
lbsa71 2007-09-14 09:25:07 +00:00
parent 8849637493
commit 1b1808d45d
2 changed files with 125 additions and 113 deletions

View File

@ -39,7 +39,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
{ {
if (Script.Substring(0, 4).ToLower() == "//c#") if (Script.Substring(0, 4).ToLower() == "//c#")
{ {
return LSL_Converter.Convert(Script); return CompileFromCSText( Script );
} }
else else
{ {

View File

@ -0,0 +1,12 @@
//c#
namespace SecondLife {
public class Script : OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL.LSL_BaseClass
{
public Script() { }
public void default_event_state_entry( )
{
llSay(0, "testing, I've been touched");
}
}}