fixed = operator in uFloat hedgeroid
authorXeli
Sun, 28 Aug 2011 17:42:32 +0200
branchhedgeroid
changeset 5665 8805f3167058
parent 5663 b13d1897d06f
child 5667 24f4d7a37038
fixed = operator in uFloat
hedgewars/uFloat.pas
--- a/hedgewars/uFloat.pas	Fri Aug 26 21:03:23 2011 +0200
+++ b/hedgewars/uFloat.pas	Sun Aug 28 17:42:32 2011 +0200
@@ -203,9 +203,7 @@
 
 operator = (const z1, z2: hwFloat) z:boolean; inline;
 begin
-    z:= true;
-    z:= z and (z1.isNegative = z2.isNegative);
-    z:= z and (z1.QWordValue = z2.QWordValue);
+    z:= (z1.isNegative = z2.isNegative) and (z1.QWordValue = z2.QWordValue);
 end;