• R/O
  • SSH
  • HTTPS

alinous-core: Commit


Commit MetaInfo

Revision107 (tree)
Time2007-11-10 16:06:12
Authori-zuka

Log Message

(empty log message)

Change Summary

Incremental Difference

--- AlinousCoreIDE1.0/AlinousCore/src/org/alinous/script/basic/condition/DirectCondition.java (revision 106)
+++ AlinousCoreIDE1.0/AlinousCore/src/org/alinous/script/basic/condition/DirectCondition.java (revision 107)
@@ -142,6 +142,12 @@
142142 return Integer.parseInt(leftValue.getValue()) >= Integer.parseInt(rightValue.getValue());
143143 }
144144
145+ if(leftValue.getValueType().equals(IScriptVariable.TYPE_DOUBLE)
146+ && rightValue.getValueType().equals(IScriptVariable.TYPE_DOUBLE)){
147+ return Double.parseDouble(leftValue.getValue()) >= Double.parseDouble(rightValue.getValue());
148+
149+ }
150+
145151 int com = leftValue.getValue().compareTo(rightValue.getValue());
146152
147153 return com >= 0;
@@ -159,6 +165,12 @@
159165 return Integer.parseInt(leftValue.getValue()) > Integer.parseInt(rightValue.getValue());
160166 }
161167
168+ if(leftValue.getValueType().equals(IScriptVariable.TYPE_DOUBLE)
169+ && rightValue.getValueType().equals(IScriptVariable.TYPE_DOUBLE)){
170+ return Double.parseDouble(leftValue.getValue()) > Double.parseDouble(rightValue.getValue());
171+
172+ }
173+
162174 int com = leftValue.getValue().compareTo(rightValue.getValue());
163175
164176 return com > 0;
Show on old repository browser