equal
deleted
inserted
replaced
1837 if targ <> nil then |
1837 if targ <> nil then |
1838 begin |
1838 begin |
1839 trackSpeed:= _0; |
1839 trackSpeed:= _0; |
1840 trackSpeed.QWordValue:= Gear^.Power; |
1840 trackSpeed.QWordValue:= Gear^.Power; |
1841 if (Gear^.X < targ^.X) and (Gear^.dX < _0_1) then |
1841 if (Gear^.X < targ^.X) and (Gear^.dX < _0_1) then |
1842 Gear^.dX:= Gear^.dX+trackSpeed |
1842 Gear^.dX:= Gear^.dX+trackSpeed // please leave as an add. I like the effect |
1843 else if (Gear^.X > targ^.X) and (Gear^.dX > -_0_1) then |
1843 else if (Gear^.X > targ^.X) and (Gear^.dX > -_0_1) then |
1844 Gear^.dX:= Gear^.dX-trackSpeed; |
1844 Gear^.dX:= Gear^.dX-trackSpeed; |
1845 if (Gear^.Y < targ^.Y) and (Gear^.dY < _0_1) then |
1845 if (Gear^.Y < targ^.Y) and (Gear^.dY < _0_1) then |
1846 Gear^.dY:= Gear^.dY+trackSpeed |
1846 Gear^.dY:= Gear^.dY+trackSpeed |
1847 else if (Gear^.Y > targ^.Y) and (Gear^.dY > -_0_1) then |
1847 else if (Gear^.Y > targ^.Y) and (Gear^.dY > -_0_1) then |