diff options
First basic test script now works in the jvm scripting engine.
For it to work you need to have a java sdk installed and the javac.exe somewhere in the environment Path variable.
Then To test, copy the text from bin/script1.text into a note card and then add that note to a prim.
Diffstat (limited to 'OpenSim.Scripting.EmbeddedJVM/InterpreterLogic.cs')
-rw-r--r-- | OpenSim.Scripting.EmbeddedJVM/InterpreterLogic.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim.Scripting.EmbeddedJVM/InterpreterLogic.cs b/OpenSim.Scripting.EmbeddedJVM/InterpreterLogic.cs index 673970a..8c895af 100644 --- a/OpenSim.Scripting.EmbeddedJVM/InterpreterLogic.cs +++ b/OpenSim.Scripting.EmbeddedJVM/InterpreterLogic.cs | |||
@@ -274,11 +274,11 @@ namespace OpenSim.Scripting.EmbeddedJVM | |||
274 | if (flcom1 is Float && flcom2 is Float) | 274 | if (flcom1 is Float && flcom2 is Float) |
275 | { | 275 | { |
276 | Int compres = new Int(); | 276 | Int compres = new Int(); |
277 | if (((Float)flcom1).mValue > ((Float)flcom2).mValue) | 277 | if (((Float)flcom1).mValue < ((Float)flcom2).mValue) |
278 | { | 278 | { |
279 | compres.mValue = -1; | 279 | compres.mValue = -1; |
280 | } | 280 | } |
281 | else if (((Float)flcom1).mValue < ((Float)flcom2).mValue) | 281 | else if (((Float)flcom1).mValue > ((Float)flcom2).mValue) |
282 | { | 282 | { |
283 | compres.mValue = 1; | 283 | compres.mValue = 1; |
284 | } | 284 | } |