equal
deleted
inserted
replaced
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); |