hedgewars/uGearsHedgehog.pas
changeset 11272 9621fdcad965
parent 11206 a85b0ef91685
child 11473 2f6f8baa2a97
equal deleted inserted replaced
11271:31e0e38e703c 11272:9621fdcad965
   908             Gear^.dY:= _0;
   908             Gear^.dY:= _0;
   909         Gear^.State:= Gear^.State and (not gstCollision)
   909         Gear^.State:= Gear^.State and (not gstCollision)
   910         end;
   910         end;
   911     Gear^.State:= Gear^.State or gstMoving;
   911     Gear^.State:= Gear^.State or gstMoving;
   912     if (Gear^.State and gstHHDriven <> 0) and
   912     if (Gear^.State and gstHHDriven <> 0) and
       
   913        (FollowGear <> nil) and
   913        (not CurrentTeam^.ExtDriven) and (hwSqr(Gear^.dX) + hwSqr(Gear^.dY) > _0_003) then
   914        (not CurrentTeam^.ExtDriven) and (hwSqr(Gear^.dX) + hwSqr(Gear^.dY) > _0_003) then
   914         begin
   915         begin
   915         // TODO: why so aggressive at setting FollowGear when falling?
   916         // TODO: why so aggressive at setting FollowGear when falling?
   916         // because hog was being yanked out of frame by other stuff when doing a complicated jump/chute/saucer/roping.
   917         // because hog was being yanked out of frame by other stuff when doing a complicated jump/chute/saucer/roping.
   917         // added a couple more conditions to make it a bit less aggressive, at cost of possibly spectator failing to follow a maneuver
   918         // added a couple more conditions to make it a bit less aggressive, at cost of possibly spectator failing to follow a maneuver