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); |