hedgewars/uUtils.pas
changeset 12628 c8edce7e5f18
parent 12626 d972b31f8881
child 12740 83d62800d215
equal deleted inserted replaced
12627:07fdda8c13a2 12628:c8edce7e5f18
   534 end;
   534 end;
   535 
   535 
   536 
   536 
   537 function GetLaunchX(at: TAmmoType; dir: LongInt; angle: LongInt): LongInt;
   537 function GetLaunchX(at: TAmmoType; dir: LongInt; angle: LongInt): LongInt;
   538 begin
   538 begin
       
   539 at:= at; dir:= dir; angle:= angle; // parameter hint suppression because code below is currently disabled
   539 GetLaunchX:= 0
   540 GetLaunchX:= 0
   540 (*
   541 (*
   541     if (Ammoz[at].ejectX <> 0) or (Ammoz[at].ejectY <> 0) then
   542     if (Ammoz[at].ejectX <> 0) or (Ammoz[at].ejectY <> 0) then
   542         GetLaunchX:= sign(dir) * (8 + hwRound(AngleSin(angle) * Ammoz[at].ejectX) + hwRound(AngleCos(angle) * Ammoz[at].ejectY))
   543         GetLaunchX:= sign(dir) * (8 + hwRound(AngleSin(angle) * Ammoz[at].ejectX) + hwRound(AngleCos(angle) * Ammoz[at].ejectY))
   543     else
   544     else
   544         GetLaunchX:= 0 *)
   545         GetLaunchX:= 0 *)
   545 end;
   546 end;
   546 
   547 
   547 function GetLaunchY(at: TAmmoType; angle: LongInt): LongInt;
   548 function GetLaunchY(at: TAmmoType; angle: LongInt): LongInt;
   548 begin
   549 begin
       
   550 at:= at; angle:= angle; // parameter hint suppression because code below is currently disabled
   549 GetLaunchY:= 0
   551 GetLaunchY:= 0
   550 (*
   552 (*
   551     if (Ammoz[at].ejectX <> 0) or (Ammoz[at].ejectY <> 0) then
   553     if (Ammoz[at].ejectX <> 0) or (Ammoz[at].ejectY <> 0) then
   552         GetLaunchY:= hwRound(AngleSin(angle) * Ammoz[at].ejectY) - hwRound(AngleCos(angle) * Ammoz[at].ejectX) - 2
   554         GetLaunchY:= hwRound(AngleSin(angle) * Ammoz[at].ejectY) - hwRound(AngleCos(angle) * Ammoz[at].ejectX) - 2
   553     else
   555     else