hedgewars/uGearsRender.pas
changeset 5612 2638dec1b323
parent 5561 dfbe55237c64
child 5644 4ad07103cfae
child 5706 4454aa0523e7
equal deleted inserted replaced
5610:f8bdc789ac60 5612:2638dec1b323
   881 var
   881 var
   882     HHGear: PGear;
   882     HHGear: PGear;
   883     i: Longword;
   883     i: Longword;
   884     startX, endX, startY, endY: LongInt;
   884     startX, endX, startY, endY: LongInt;
   885 begin
   885 begin
   886     if Gear^.TargetX <> NoPointX then
   886     if Gear^.Target.X <> NoPointX then
   887         if Gear^.AmmoType = amBee then
   887         if Gear^.AmmoType = amBee then
   888             DrawRotatedF(sprTargetBee, Gear^.TargetX + WorldDx, Gear^.TargetY + WorldDy, 0, 0, (RealTicks shr 3) mod 360)
   888             DrawRotatedF(sprTargetBee, Gear^.Target.X + WorldDx, Gear^.Target.Y + WorldDy, 0, 0, (RealTicks shr 3) mod 360)
   889         else
   889         else
   890             DrawRotatedF(sprTargetP, Gear^.TargetX + WorldDx, Gear^.TargetY + WorldDy, 0, 0, (RealTicks shr 3) mod 360);
   890             DrawRotatedF(sprTargetP, Gear^.Target.X + WorldDx, Gear^.Target.Y + WorldDy, 0, 0, (RealTicks shr 3) mod 360);
   891 
   891 
   892     case Gear^.Kind of
   892     case Gear^.Kind of
   893           gtGrenade: DrawRotated(sprBomb, x, y, 0, Gear^.DirAngle);
   893           gtGrenade: DrawRotated(sprBomb, x, y, 0, Gear^.DirAngle);
   894       gtSnowball: DrawRotated(sprSnowball, x, y, 0, Gear^.DirAngle);
   894       gtSnowball: DrawRotated(sprSnowball, x, y, 0, Gear^.DirAngle);
   895        gtGasBomb: DrawRotated(sprCheese, x, y, 0, Gear^.DirAngle);
   895        gtGasBomb: DrawRotated(sprCheese, x, y, 0, Gear^.DirAngle);