* make invul animations of different hogs run asynchronously
authorsheepluva
Thu, 01 Apr 2010 09:04:42 +0000
changeset 3232 17d37ea2553c
parent 3231 a578cbf5d543
child 3233 9d9ff51b9789
* make invul animations of different hogs run asynchronously
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;