--- a/hedgewars/uVisualGears.pas Thu Oct 31 21:13:07 2013 -0400
+++ b/hedgewars/uVisualGears.pas Fri Nov 01 23:50:13 2013 +0400
@@ -167,7 +167,7 @@
end;
end;
if Gear^.Tint <> $FFFFFFFF then
- Tint($FF,$FF,$FF,$FF);
+ untint;
Gear:= Gear^.NextGear
end
end;
@@ -220,9 +220,9 @@
DrawSprite(sprDroplet, round(Gear^.X) + WorldDx - 8, round(Gear^.Y) + WorldDy - 8, Gear^.Frame);
vgtBubble: DrawSprite(sprBubbles, round(Gear^.X) + WorldDx - 8, round(Gear^.Y) + WorldDy - 8, Gear^.Frame);//(RealTicks div 64 + Gear^.Frame) mod 8);
end;
- //if (Gear^.Tint <> $FFFFFFFF) or tinted then Tint($FF,$FF,$FF,$FF);
+ //if (Gear^.Tint <> $FFFFFFFF) or tinted then untint;
if (Gear^.Tint <> $FFFFFFFF) then
- Tint($FF,$FF,$FF,$FF);
+ untint;
Gear:= Gear^.NextGear
end
end;
@@ -284,7 +284,7 @@
vgtChunk: DrawSpriteRotatedF(sprChunk, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, Gear^.Frame, 1, Gear^.Angle);
end;
if (Gear^.Tint <> $FFFFFFFF) or tinted then
- Tint($FF,$FF,$FF,$FF);
+ untint;
Gear:= Gear^.NextGear
end
end;
@@ -368,7 +368,7 @@
DrawCircle(round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, Gear^.State, Gear^.Timer);
end;
if (Gear^.Tint <> $FFFFFFFF) or tinted then
- Tint($FF,$FF,$FF,$FF);
+ untint;
Gear:= Gear^.NextGear
end
end;
@@ -396,7 +396,7 @@
DrawTextureRotatedF(SpritesData[sprFlake].Texture, Gear^.Scale, 0, 0, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy + SkyOffset, Gear^.Frame, 1, SpritesData[sprFlake].Width, SpritesData[sprFlake].Height, Gear^.Angle);
end;
if (Gear^.Tint <> $FFFFFFFF) then
- Tint($FF,$FF,$FF,$FF);
+ untint;
Gear:= Gear^.NextGear
end
end;
@@ -424,7 +424,7 @@
DrawSpriteRotatedF(sprFlake, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy + SkyOffset, Gear^.Frame, 1, Gear^.Angle);
end;
if (Gear^.Tint <> $FFFFFFFF) then
- Tint($FF,$FF,$FF,$FF);
+ untint;
Gear:= Gear^.NextGear
end
end;
@@ -448,7 +448,7 @@
DrawSpriteRotatedF(sprFlake, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy + SkyOffset, Gear^.Frame, 1, Gear^.Angle);
end;
if (Gear^.Tint <> $FFFFFFFF) then
- Tint($FF,$FF,$FF,$FF);
+ untint;
Gear:= Gear^.NextGear
end
end;