- Remove cake fix
authorunc0rr
Tue, 22 Sep 2009 15:48:49 +0000
changeset 2389 bc3e45a4d5fb
parent 2388 76ccf12faf22
child 2390 57fb33ab04a4
- Remove cake fix - Restore negative zero in hwSign
hedgewars/uGears.pas
hedgewars/uMisc.pas
--- a/hedgewars/uGears.pas	Tue Sep 22 15:42:19 2009 +0000
+++ b/hedgewars/uGears.pas	Tue Sep 22 15:48:49 2009 +0000
@@ -372,7 +372,6 @@
                 Result^.Radius:= 7;
                 Result^.Z:= cOnHHZ;
                 Result^.RenderTimer:= true;
-                Result^.dX.QWordValue:= 1;
                 if not dX.isNegative then Result^.Angle:= 1 else Result^.Angle:= 3
                 end;
  gtHellishBomb: begin
--- 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;