Skip to content

Commit

Permalink
rising flakes will no longer fly forever
Browse files Browse the repository at this point in the history
  • Loading branch information
KoBeWi committed Oct 5, 2016
1 parent 12c47c6 commit 043eb1f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hedgewars/uVisualGearsHandlers.pas
Expand Up @@ -162,7 +162,12 @@ procedure doStepFlake(Gear: PVisualGear; Steps: Longword);
X:= X - cScreenSpace;
moved:= true
end;
// if round(Y) < (LAND_HEIGHT - 1024 - 75) then Y:= Y + 25.0; // For if flag is set for flakes rising upwards?
if round(Y) < (LAND_HEIGHT - 1024 - 75) then
begin
X:= cLeftScreenBorder + random(cScreenSpace);
Y:= Y+(1024 + 200 + random(50));
moved:= true
end
if (Gear^.Layer = 2) and (round(Y) - 400 > LAND_HEIGHT) and (cGravityf >= 0) then
begin
X:= cLeftScreenBorder + random(cScreenSpace);
Expand Down

0 comments on commit 043eb1f

Please sign in to comment.