hedgewars/uVisualGears.pas
changeset 1760 55a1edd97911
parent 1753 2ccba26f1aa4
child 1762 fe79315a0b66
equal deleted inserted replaced
1759:88b0cf9d6de5 1760:55a1edd97911
    87 
    87 
    88 Gear^.X:= Gear^.X + (cWindSpeed * 200 + Gear^.dX) * Steps;
    88 Gear^.X:= Gear^.X + (cWindSpeed * 200 + Gear^.dX) * Steps;
    89 Gear^.Y:= Gear^.Y + (Gear^.dY + cGravity * vobFallSpeed) * Steps;
    89 Gear^.Y:= Gear^.Y + (Gear^.dY + cGravity * vobFallSpeed) * Steps;
    90 Gear^.Angle:= Gear^.Angle + Gear^.dAngle * Steps;
    90 Gear^.Angle:= Gear^.Angle + Gear^.dAngle * Steps;
    91 
    91 
    92 if hwRound(Gear^.X) < -cScreenWidth - 64 then Gear^.X:= int2hwFloat(cScreenWidth + LAND_WIDTH + 1) else
    92 if hwRound(Gear^.X) < -cScreenWidth - 64 then Gear^.X:= int2hwFloat(cScreenWidth + LAND_WIDTH) else
    93 if hwRound(Gear^.X) > cScreenWidth + LAND_WIDTH + 1 then Gear^.X:= int2hwFloat(-cScreenWidth - 64);
    93 if hwRound(Gear^.X) > cScreenWidth + LAND_WIDTH then Gear^.X:= int2hwFloat(-cScreenWidth - 64);
    94 if hwRound(Gear^.Y) > (LAND_HEIGHT+75) then Gear^.Y:= Gear^.Y - int2hwFloat(LAND_HEIGHT+200)
    94 if hwRound(Gear^.Y) > (LAND_HEIGHT + 75) then Gear^.Y:= Gear^.Y - int2hwFloat(LAND_HEIGHT + 200)
    95 end;
    95 end;
    96 
    96 
    97 procedure doStepCloud(Gear: PVisualGear; Steps: Longword);
    97 procedure doStepCloud(Gear: PVisualGear; Steps: Longword);
    98 var i: Longword;
    98 var i: Longword;
    99 begin
    99 begin