hedgewars/uFloat.pas
changeset 2300 d633bc70c893
parent 1915 c357f5b55320
child 2587 0dfa56a8513c
--- a/hedgewars/uFloat.pas	Sun Aug 09 22:07:57 2009 +0000
+++ b/hedgewars/uFloat.pas	Tue Aug 11 19:56:01 2009 +0000
@@ -273,8 +273,8 @@
 
 function hwRound(const t: hwFloat): LongInt;
 begin
-if t.isNegative then hwRound:= -t.Round
-                else hwRound:= t.Round
+if t.isNegative then hwRound:= -(t.Round and $7FFFFFFF)
+                else hwRound:= t.Round and $7FFFFFFF
 end;
 
 function hwAbs(const t: hwFloat): hwFloat;