hedgewars/uMisc.pas
changeset 2389 bc3e45a4d5fb
parent 2382 bfd378dfc4e7
child 2392 a55dbef5cf31
--- a/hedgewars/uMisc.pas	Tue Sep 22 15:42:19 2009 +0000
+++ b/hedgewars/uMisc.pas	Tue Sep 22 15:48:49 2009 +0000
@@ -170,7 +170,8 @@
 
 function hwSign(r: hwFloat): LongInt;
 begin
-if r.isNegative and (r.QWordValue > 0) then hwSign:= -1 else hwSign:= 1
+// yes, we have negative zero for a reason
+if r.isNegative then hwSign:= -1 else hwSign:= 1
 end;
 
 function Min(a, b: LongInt): LongInt;