hedgewars/uVisualGears.pas
changeset 7543 a0dc770538e1
parent 7420 77567b03cc28
child 7565 00568d3054d0
child 7597 1ef520fea21c
--- a/hedgewars/uVisualGears.pas	Wed Aug 15 23:30:23 2012 +0400
+++ b/hedgewars/uVisualGears.pas	Wed Aug 15 16:54:49 2012 -0400
@@ -958,10 +958,10 @@
     exit;
 
 if hasBorder or ((Theme <> 'Snow') and (Theme <> 'Christmas')) then
-    for i:= 0 to Pred(vobCount * cScreenSpace div LAND_WIDTH) do
+    for i:= 0 to Pred(vobCount * cScreenSpace div 4096) do
         AddVisualGear(cLeftScreenBorder + random(cScreenSpace), random(1024+200) - 100 + LAND_HEIGHT, vgtFlake)
 else
-    for i:= 0 to Pred((vobCount * cScreenSpace div LAND_WIDTH) div 3) do
+    for i:= 0 to Pred((vobCount * cScreenSpace div 4096) div 3) do
         AddVisualGear(cLeftScreenBorder + random(cScreenSpace), random(1024+200) - 100 + LAND_HEIGHT, vgtFlake);
 end;