diff -r 9b97b9240c22 -r 1d4926d10a9e hedgewars/uVisualGears.pas --- a/hedgewars/uVisualGears.pas Sat May 01 19:40:45 2010 +0000 +++ b/hedgewars/uVisualGears.pas Sat May 01 20:02:20 2010 +0000 @@ -760,7 +760,7 @@ Tint($FF, $FF, $FF, Gear^.FrameTicks); DrawRotatedF(sprFeather, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, Gear^.Frame, 1, Gear^.Angle); if Gear^.FrameTicks < 255 then - Tint($FFFFFFFF); + Tint($FF, $FF, $FF, $FF); end; end; Gear:= Gear^.NextGear @@ -778,7 +778,7 @@ Tint($FF, $FF, $FF, floor(Gear^.alpha * $FF)); DrawTextureF(ropeIconTex, Gear^.scale, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, 1, 32, 32); DrawTextureF(SpritesData[sprAMAmmos].Texture, Gear^.scale * 0.90, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, Gear^.Frame - 1, 1, 32, 32); - Tint($FFFFFFFF); + Tint($FF, $FF, $FF, $FF); end; vgtHealth: begin case Gear^.Frame div 10 of @@ -786,21 +786,21 @@ 1:Tint($FF, 0, 0, floor(Gear^.FrameTicks * $FF / 1000)); end; DrawSprite(sprHealth, hwRound(Gear^.X) + WorldDx - 8, hwRound(Gear^.Y) + WorldDy - 8, 0); - Tint($FFFFFFFF); + Tint($FF, $FF, $FF, $FF); end; vgtShell: begin if Gear^.FrameTicks < $FF then Tint($FF, $FF, $FF, Gear^.FrameTicks); DrawRotatedF(sprShell, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, Gear^.Frame, 1, Gear^.Angle); if Gear^.FrameTicks < $FF then - Tint($FFFFFFFF); + Tint($FF, $FF, $FF, $FF); end; vgtEgg: begin if Gear^.FrameTicks < $FF then Tint($FF, $FF, $FF, Gear^.FrameTicks); DrawRotatedF(sprEgg, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, Gear^.Frame, 1, Gear^.Angle); if Gear^.FrameTicks < $FF then - Tint($FFFFFFFF); + Tint($FF, $FF, $FF, $FF); end; vgtSplash: DrawSprite(sprSplash, hwRound(Gear^.X) + WorldDx - 40, hwRound(Gear^.Y) + WorldDy - 58, 19 - (Gear^.FrameTicks div 37)); vgtDroplet: DrawSprite(sprDroplet, hwRound(Gear^.X) + WorldDx - 8, hwRound(Gear^.Y) + WorldDy - 8, Gear^.Frame); @@ -808,14 +808,14 @@ if Gear^.FrameTicks < $FF then Tint($FF, $FF, $FF, Gear^.FrameTicks div 2) else - Tint($80FFFFFF); + Tint($FF, $FF, $FF, $80); DrawRotatedF(sprBeeTrace, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, Gear^.Frame, 1, (RealTicks shr 4) mod cMaxAngle); - Tint($FFFFFFFF); + Tint($FF, $FF, $FF, $FF); end; vgtSmokeRing: begin Tint($FF, $FF, $FF, floor(Gear^.alpha * $FF)); DrawRotatedTextureF(SpritesData[sprSmokeRing].Texture, Gear^.scale, 0, 0, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, 1, 200, 200, Gear^.Angle); - Tint($FFFFFFFF); + Tint($FF, $FF, $FF, $FF); end; end; case Gear^.Kind of