That check was too weird and complicated
authorunc0rr
Sun, 12 Jan 2014 11:07:49 +0400
changeset 9971 071902835770
parent 9969 f27921b31b61
child 9973 7589978c9912
That check was too weird and complicated
hedgewars/uGearsHedgehog.pas
--- a/hedgewars/uGearsHedgehog.pas	Fri Jan 10 22:56:10 2014 +0400
+++ b/hedgewars/uGearsHedgehog.pas	Sun Jan 12 11:07:49 2014 +0400
@@ -881,7 +881,7 @@
         Gear^.State:= Gear^.State and not gstCollision 
         end;
     Gear^.State:= Gear^.State or gstMoving;
-    if (CurrentHedgehog^.Gear = Gear) and (CurrentHedgehog^.Gear^.State and gstHHDriven <> 0) and
+    if (Gear^.State and gstHHDriven <> 0) and
        (not CurrentTeam^.ExtDriven) and (hwSqr(Gear^.dX) + hwSqr(Gear^.dY) > _0_003) then
         begin
         // TODO: why so aggressive at setting FollowGear when falling?