Fix SD flakes attributes not set properly when SD flake count = normal flake count
authorWuzzy <Wuzzy2@mail.ru>
Wed, 21 Feb 2018 15:53:30 +0100
changeset 13048 9dd724e8d620
parent 13047 eadf8259306f
child 13049 f18cefc4309d
Fix SD flakes attributes not set properly when SD flake count = normal flake count Fixes bug #233
hedgewars/uVisualGears.pas
--- a/hedgewars/uVisualGears.pas	Wed Feb 21 15:05:50 2018 +0100
+++ b/hedgewars/uVisualGears.pas	Wed Feb 21 15:53:30 2018 +0100
@@ -513,7 +513,9 @@
 begin
 if (cReducedQuality and rqKillFlakes) <> 0 then
     exit;
-if vobCount = vobSDCount then
+if (vobCount = vobSDCount) and (vobFrameTicks = vobSDFrameTicks) and
+        (vobFramesCount = vobSDFramesCount) and (vobVelocity = vobSDVelocity) and
+        (vobFallSpeed = vobSDFallSpeed) then
     exit;
 for i:= 0 to 6 do
     begin