hedgewars/uGearsRender.pas
changeset 4611 445d382cd401
parent 4578 f3cf226fad16
child 4617 42aad2cd981e
--- a/hedgewars/uGearsRender.pas	Wed Dec 22 04:09:56 2010 +0100
+++ b/hedgewars/uGearsRender.pas	Wed Dec 22 00:17:43 2010 -0500
@@ -1017,6 +1017,13 @@
                     Tint($FF, $FF, $FF, $FF);
                     end;
       gtNapalmBomb: DrawRotated(sprNapalmBomb, x, y, 0, DxDy2Angle(Gear^.dY, Gear^.dX));
+           gtFlake: if vobVelocity = 0 then
+                  //DrawSprite(sprFlake, x-SpritesData[sprFlake].Width div 2, y-SpritesData[sprFlake].Height div 2, Gear^.Timer)
+                  DrawSprite(sprFlake, x, y, Gear^.Timer)
+              else
+                  //DrawRotatedF(sprFlake, x-SpritesData[sprFlake].Width div 2, y-SpritesData[sprFlake].Height div 2, Gear^.Timer, 1, Gear^.DirAngle);
+                  DrawRotatedF(sprFlake, x, y, Gear^.Timer, 1, Gear^.DirAngle);
+
          end;
       if Gear^.RenderTimer and (Gear^.Tex <> nil) then DrawCentered(x + 8, y + 8, Gear^.Tex);
 end;