hedgewars/uGearsRender.pas
branchhedgeroid
changeset 5932 5164d17b6374
parent 5824 2e5835130d9a
parent 5873 4f2d8ce3732b
child 6023 a28be05b20bc
--- a/hedgewars/uGearsRender.pas	Fri Sep 16 17:36:05 2011 +0200
+++ b/hedgewars/uGearsRender.pas	Fri Sep 16 18:17:16 2011 +0200
@@ -888,7 +888,10 @@
           gtGrenade: DrawRotated(sprBomb, x, y, 0, Gear^.DirAngle);
       gtSnowball: DrawRotated(sprSnowball, x, y, 0, Gear^.DirAngle);
        gtGasBomb: DrawRotated(sprCheese, x, y, 0, Gear^.DirAngle);
-       gtMolotov: DrawRotated(sprMolotov, x, y, 0, Gear^.DirAngle);
+                  
+       gtMolotov: if (Gear^.State and gstDrowning) = 0 then
+                       DrawRotatedF(sprMolotov, x, y, (RealTicks div 125) mod 8, hwSign(Gear^.dX), Gear^.DirAngle * hwSign(Gear^.dX))
+                  else DrawSprite(sprMolotov, x, y, 8);
 
        gtRCPlane: begin
                   if (Gear^.Tag = -1) then