hedgewars/uGearsRender.pas
changeset 5507 1040c0946ef8
parent 5472 a724fe2d2ce0
child 5519 c803fca71084
equal deleted inserted replaced
5505:a55aab592950 5507:1040c0946ef8
   875 var
   875 var
   876     HHGear: PGear;
   876     HHGear: PGear;
   877     i: Longword;
   877     i: Longword;
   878     startX, endX, startY, endY: LongInt;
   878     startX, endX, startY, endY: LongInt;
   879 begin
   879 begin
       
   880     if Gear^.TargetX <> NoPointX then
       
   881         if Gear^.AmmoType = amBee then
       
   882             DrawRotatedF(sprTargetBee, Gear^.TargetX + WorldDx, Gear^.TargetY + WorldDy, 0, 0, (RealTicks shr 3) mod 360)
       
   883         else
       
   884             DrawRotatedF(sprTargetP, Gear^.TargetX + WorldDx, Gear^.TargetY + WorldDy, 0, 0, (RealTicks shr 3) mod 360);
       
   885 
   880     case Gear^.Kind of
   886     case Gear^.Kind of
   881           gtGrenade: DrawRotated(sprBomb, x, y, 0, Gear^.DirAngle);
   887           gtGrenade: DrawRotated(sprBomb, x, y, 0, Gear^.DirAngle);
   882       gtSnowball: DrawRotated(sprSnowball, x, y, 0, Gear^.DirAngle);
   888       gtSnowball: DrawRotated(sprSnowball, x, y, 0, Gear^.DirAngle);
   883        gtGasBomb: DrawRotated(sprCheese, x, y, 0, Gear^.DirAngle);
   889        gtGasBomb: DrawRotated(sprCheese, x, y, 0, Gear^.DirAngle);
   884        gtMolotov: DrawRotated(sprMolotov, x, y, 0, Gear^.DirAngle);
   890        gtMolotov: DrawRotated(sprMolotov, x, y, 0, Gear^.DirAngle);