hedgewars/GSHandlers.inc
changeset 5684 bc3d2a58921c
parent 5638 e35ba2a400d8
child 5688 fba59d6b5b6c
equal deleted inserted replaced
5683:8a5efade0b93 5684:bc3d2a58921c
  1554             Gear^.X:= RopePoints.ar[0].X;
  1554             Gear^.X:= RopePoints.ar[0].X;
  1555             Gear^.Y:= RopePoints.ar[0].Y;
  1555             Gear^.Y:= RopePoints.ar[0].Y;
  1556             end;
  1556             end;
  1557 
  1557 
  1558         CheckCollision(Gear);
  1558         CheckCollision(Gear);
  1559         // if we haven't found any collision yet then check the otheer side too
  1559         // if we haven't found any collision yet then check the other side too
  1560         if (Gear^.State and gstCollision) = 0 then
  1560         if (Gear^.State and gstCollision) = 0 then
  1561             begin
  1561             begin
  1562             Gear^.dX.isNegative:= not Gear^.dX.isNegative;
  1562             Gear^.dX.isNegative:= not Gear^.dX.isNegative;
  1563             Gear^.dY.isNegative:= not Gear^.dY.isNegative;
  1563             Gear^.dY.isNegative:= not Gear^.dY.isNegative;
  1564             CheckCollision(Gear);
  1564             CheckCollision(Gear);