Revert hog tinting from rdb65298717da since it wasn't sufficiently complete for a release. More sprites need converting, and there's a slight bug in hog tinting, for away hogs with hats I believe.
authornemo
Sat, 25 Oct 2014 10:42:30 -0400
changeset 10441 d2f599997b54
parent 10439 7de934f2247c
child 10443 42dadeb6e8ae
Revert hog tinting from rdb65298717da since it wasn't sufficiently complete for a release. More sprites need converting, and there's a slight bug in hog tinting, for away hogs with hats I believe.
hedgewars/uGearsRender.pas
share/hedgewars/Data/Graphics/Hedgehog/Idle.png
--- a/hedgewars/uGearsRender.pas	Mon Oct 20 19:50:46 2014 +0200
+++ b/hedgewars/uGearsRender.pas	Sat Oct 25 10:42:30 2014 -0400
@@ -810,24 +810,13 @@
         begin
         if defaultPos then
             begin
-            if HH^.Team^.hasGone then
-                 Tint($FFFFFF80)
-            else if HH^.Effects[hePoisoned] <> 0 then
-                 Tint($B7FFBCFF)
-            else Tint(HH^.Gear^.Tint);
+            if HH^.Team^.hasGone then Tint($FFFFFF80);
             DrawSpriteRotatedF(sprHHIdle,
                 sx,
                 sy,
                 (RealTicks div 128 + Gear^.Pos) mod 19,
                 sign,
                 0);
-            untint;
-            DrawSpriteRotatedF(sprHHIdle,
-                sx,
-                sy,
-                (RealTicks div 128 + Gear^.Pos) mod 19 + 32,
-                sign,
-                0);
             HatVisible:= true;
             end;
 
Binary file share/hedgewars/Data/Graphics/Hedgehog/Idle.png has changed