hedgewars/uVisualGears.pas
changeset 7565 00568d3054d0
parent 7442 9bb6abdb5675
parent 7543 a0dc770538e1
child 7615 b39beffcf05e
--- a/hedgewars/uVisualGears.pas	Sun Aug 12 23:05:15 2012 +0400
+++ b/hedgewars/uVisualGears.pas	Sun Aug 19 22:13:41 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;