hedgewars/HHHandlers.inc
changeset 1865 ebc6dfca60d4
parent 1861 98de5dc5fda7
child 1883 7c7476f56114
equal deleted inserted replaced
1864:71c2310a6f41 1865:ebc6dfca60d4
   490                 else SetLittle(Gear^.dX);
   490                 else SetLittle(Gear^.dX);
   491 
   491 
   492 if (not isFalling) and
   492 if (not isFalling) and
   493    (hwAbs(Gear^.dX) + hwAbs(Gear^.dY) < _0_03) then
   493    (hwAbs(Gear^.dX) + hwAbs(Gear^.dY) < _0_03) then
   494    begin
   494    begin
       
   495    Gear^.State:= Gear^.State and not gstWinner;
   495    Gear^.State:= Gear^.State and not gstMoving;
   496    Gear^.State:= Gear^.State and not gstMoving;
   496    SetLittle(Gear^.dX);
   497    SetLittle(Gear^.dX);
   497    Gear^.dY:= _0
   498    Gear^.dY:= _0
   498    end else Gear^.State:= Gear^.State or gstMoving;
   499    end else Gear^.State:= Gear^.State or gstMoving;
   499 
   500