Fix cake going wrong way bug (triggered by disallowing "negative zero" in hwSign)
authorunc0rr
Tue, 22 Sep 2009 15:42:19 +0000
changeset 2388 76ccf12faf22
parent 2387 0fd5dd1884ab
child 2389 bc3e45a4d5fb
Fix cake going wrong way bug (triggered by disallowing "negative zero" in hwSign)
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Thu Sep 17 06:37:24 2009 +0000
+++ b/hedgewars/uGears.pas	Tue Sep 22 15:42:19 2009 +0000
@@ -372,7 +372,8 @@
                 Result^.Radius:= 7;
                 Result^.Z:= cOnHHZ;
                 Result^.RenderTimer:= true;
-                if hwSign(dX) > 0 then Result^.Angle:= 1 else Result^.Angle:= 3
+                Result^.dX.QWordValue:= 1;
+                if not dX.isNegative then Result^.Angle:= 1 else Result^.Angle:= 3
                 end;
  gtHellishBomb: begin
                 Result^.Radius:= 4;