hedgewars/uVisualGears.pas
changeset 1132 b4c0698fbb6b
parent 1079 2a4a8a5ca392
child 1505 3a96e93572cb
equal deleted inserted replaced
1131:c5b8f2bfa487 1132:b4c0698fbb6b
   254 end;
   254 end;
   255 
   255 
   256 procedure AddClouds;
   256 procedure AddClouds;
   257 var i: LongInt;
   257 var i: LongInt;
   258 begin
   258 begin
   259 for i:= 0 to cCloudsNumber do
   259 for i:= 0 to cCloudsNumber - 1 do
   260     AddVisualGear( - cScreenWidth + i * ((cScreenWidth * 2 + 2304) div cCloudsNumber), -160, vgtCloud)
   260     AddVisualGear( - cScreenWidth + i * ((cScreenWidth * 2 + 2304) div (cCloudsNumber + 1)), -160, vgtCloud)
   261 end;
   261 end;
   262 
   262 
   263 initialization
   263 initialization
   264 
   264 
   265 finalization
   265 finalization