hedgewars/VGSHandlers.inc
changeset 5874 5cd329cf2460
parent 5855 74c621e12baa
child 6005 3470f3f547ca
--- a/hedgewars/VGSHandlers.inc	Mon Sep 12 06:31:10 2011 +0200
+++ b/hedgewars/VGSHandlers.inc	Mon Sep 12 07:27:34 2011 +0200
@@ -174,7 +174,10 @@
 if Gear^.FrameTicks <= Steps then
     DeleteVisualGear(Gear)
 else
-    dec(Gear^.FrameTicks, Steps)
+    dec(Gear^.FrameTicks, Steps);
+
+if Gear^.FrameTicks < $FF then
+   Gear^.Tint:= (Gear^.Tint and $FFFFFF00) or Gear^.FrameTicks
 end;
 
 ////////////////////////////////////////////////////////////////////////////////