# HG changeset patch
# User sheepluva
# Date 1270112682 0
# Node ID 17d37ea2553c6bd86e9b2dbc0e4c30941ceab156
# Parent  a578cbf5d54341b45004116b27dd2f8f87521964
* make invul animations of different hogs run asynchronously

diff -r a578cbf5d543 -r 17d37ea2553c hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Thu Apr 01 08:26:16 2010 +0000
+++ b/hedgewars/uGears.pas	Thu Apr 01 09:04:42 2010 +0000
@@ -1464,7 +1464,7 @@
 
 if Gear^.Invulnerable then
     begin
-    glColor4f(1, 1, 1, 0.25 + abs(1 - ((RealTicks div 2) mod 1500) / 750));
+    glColor4f(1, 1, 1, 0.25 + abs(1 - ((RealTicks div 2 + Gear^.uid * 491) mod 1500) / 750));
     DrawSprite(sprInvulnerable, sx - 24, sy - 24, 0);
     glColor4f(1, 1, 1, 1);
     end;