fix issue 8: Static skull and bones flakes near the water in Sudden Death in themes without flakes
authorsheepluva
Wed, 27 Apr 2016 01:34:59 +0200
changeset 11739 eee922f69d1b
parent 11738 90ea2156b809
child 11740 bb704a0f564d
fix issue #8: Static skull and bones flakes near the water in Sudden Death in themes without flakes
hedgewars/uVisualGearsHandlers.pas
--- a/hedgewars/uVisualGearsHandlers.pas	Wed Apr 27 01:06:29 2016 +0200
+++ b/hedgewars/uVisualGearsHandlers.pas	Wed Apr 27 01:34:59 2016 +0200
@@ -82,7 +82,12 @@
     moved: boolean;
     vfc, vft: LongWord;
 begin
-if vobCount = 0 then exit;
+if SuddenDeathDmg then
+    begin
+    if (vobSDCount = 0) then exit;
+    end
+else
+    if (vobCount = 0) then exit;
 
 sign:= 1;
 with Gear^ do