slight visual tweak. birdy's wings beat faster if he's just about tired out
authornemo
Mon, 08 Aug 2011 23:57:04 -0400
changeset 5528 c539e5c81870
parent 5527 418741abd209
child 5529 9a47cff3910a
child 5530 25d4118056e1
slight visual tweak. birdy's wings beat faster if he's just about tired out
hedgewars/uGearsRender.pas
--- a/hedgewars/uGearsRender.pas	Mon Aug 08 13:43:24 2011 -0400
+++ b/hedgewars/uGearsRender.pas	Mon Aug 08 23:57:04 2011 -0400
@@ -1028,7 +1028,12 @@
                             end;
                         end
                     else
-                        DrawTextureF(SpritesData[sprBirdy].Texture, 1, x, y, ((Gear^.Pos shr 6) or (RealTicks shr 8)) mod 2, Gear^.Tag, 75, 75);
+                        begin
+                        if Gear^.Health < 250 then
+                            DrawTextureF(SpritesData[sprBirdy].Texture, 1, x, y, ((Gear^.Pos shr 6) or (RealTicks shr 7)) mod 2, Gear^.Tag, 75, 75)
+                        else
+                            DrawTextureF(SpritesData[sprBirdy].Texture, 1, x, y, ((Gear^.Pos shr 6) or (RealTicks shr 8)) mod 2, Gear^.Tag, 75, 75);
+                        end;
                     end;
              gtEgg: DrawRotatedTextureF(SpritesData[sprEgg].Texture, 1, 0, 0, x, y, 0, 1, 16, 16, Gear^.DirAngle);
            gtPiano: begin