hedgewars/HHHandlers.inc
changeset 543 465e2ec8f05f
parent 542 ec26095f1bed
child 545 f527450337c1
equal deleted inserted replaced
542:ec26095f1bed 543:465e2ec8f05f
    45            begin
    45            begin
    46            StopSound(sndThrowPowerUp);
    46            StopSound(sndThrowPowerUp);
    47            PlaySound(sndThrowRelease, false);
    47            PlaySound(sndThrowRelease, false);
    48            end;
    48            end;
    49         xx:= SignAs(AngleSin(Angle), dX);
    49         xx:= SignAs(AngleSin(Angle), dX);
    50         yy:= -AngleCos(Angle);
    50         yy:= -AngleCos(Angle); 
    51              case Ammo^[CurSlot, CurAmmo].AmmoType of
    51              case Ammo^[CurSlot, CurAmmo].AmmoType of
    52                       amGrenade: FollowGear:= AddGear(hwRound(X), hwRound(Y), gtAmmo_Bomb,    0, xx*Power/cPowerDivisor, yy*Power/cPowerDivisor, Ammo^[CurSlot, CurAmmo].Timer);
    52                       amGrenade: FollowGear:= AddGear(hwRound(X), hwRound(Y), gtAmmo_Bomb,    0, xx*Power/cPowerDivisor, yy*Power/cPowerDivisor, Ammo^[CurSlot, CurAmmo].Timer);
    53                   amClusterBomb: FollowGear:= AddGear(hwRound(X), hwRound(Y), gtClusterBomb,  0, xx*Power/cPowerDivisor, yy*Power/cPowerDivisor, Ammo^[CurSlot, CurAmmo].Timer);
    53                   amClusterBomb: FollowGear:= AddGear(hwRound(X), hwRound(Y), gtClusterBomb,  0, xx*Power/cPowerDivisor, yy*Power/cPowerDivisor, Ammo^[CurSlot, CurAmmo].Timer);
    54                       amBazooka: FollowGear:= AddGear(hwRound(X), hwRound(Y), gtAmmo_Grenade, 0, xx*Power/cPowerDivisor, yy*Power/cPowerDivisor, 0);
    54                       amBazooka: FollowGear:= AddGear(hwRound(X), hwRound(Y), gtAmmo_Grenade, 0, xx*Power/cPowerDivisor, yy*Power/cPowerDivisor, 0);
    55                           amUFO: FollowGear:= AddGear(hwRound(X), hwRound(Y), gtUFO,          0, xx*Power/cPowerDivisor, yy*Power/cPowerDivisor, 0);
    55                           amUFO: FollowGear:= AddGear(hwRound(X), hwRound(Y), gtUFO,          0, xx*Power/cPowerDivisor, yy*Power/cPowerDivisor, 0);