aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Scripting.EmbeddedJVM/InterpreterLogic.cs
diff options
context:
space:
mode:
authorMW2007-04-11 12:13:21 +0000
committerMW2007-04-11 12:13:21 +0000
commit5ad6d5a939fb7bf0fdfdc6925d4afed306e08641 (patch)
tree8bcf302b69297a27ab254d087f73fe88fecab464 /OpenSim.Scripting.EmbeddedJVM/InterpreterLogic.cs
parentChanged so that a bin\ScriptEngines\ directory will be searched for scripting... (diff)
downloadopensim-SC-5ad6d5a939fb7bf0fdfdc6925d4afed306e08641.zip
opensim-SC-5ad6d5a939fb7bf0fdfdc6925d4afed306e08641.tar.gz
opensim-SC-5ad6d5a939fb7bf0fdfdc6925d4afed306e08641.tar.bz2
opensim-SC-5ad6d5a939fb7bf0fdfdc6925d4afed306e08641.tar.xz
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.cs4
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 }