hedgewars/uGearsHedgehog.pas
changeset 7623 addc5b262617
parent 7615 b39beffcf05e
child 7646 3c18ad8af8a2
--- a/hedgewars/uGearsHedgehog.pas	Wed Aug 29 16:42:22 2012 +0400
+++ b/hedgewars/uGearsHedgehog.pas	Wed Aug 29 09:58:23 2012 -0400
@@ -1014,8 +1014,8 @@
         if (CurrentHedgehog^.Gear = Gear) then
             isCursorVisible:= false
     end;
-
-if (hwAbs(Gear^.dY) > _0) and (Gear^.FlightTime > 0) and ((GameFlags and gfLowGravity) = 0) then
+// IMO this should trigger homerun based on leftX/rightX + someval instead - that is 'knocking it out of the park'
+if (not isZero(Gear^.dY)) and (Gear^.FlightTime > 0) and ((GameFlags and gfLowGravity) = 0) then
     begin
     inc(Gear^.FlightTime);
     if Gear^.FlightTime = 3000 then