From 5ad6d5a939fb7bf0fdfdc6925d4afed306e08641 Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 11 Apr 2007 12:13:21 +0000 Subject: 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. --- OpenSim.Scripting.EmbeddedJVM/InterpreterLogic.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim.Scripting.EmbeddedJVM/InterpreterLogic.cs') 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 if (flcom1 is Float && flcom2 is Float) { Int compres = new Int(); - if (((Float)flcom1).mValue > ((Float)flcom2).mValue) + if (((Float)flcom1).mValue < ((Float)flcom2).mValue) { compres.mValue = -1; } - else if (((Float)flcom1).mValue < ((Float)flcom2).mValue) + else if (((Float)flcom1).mValue > ((Float)flcom2).mValue) { compres.mValue = 1; } -- cgit v1.1