hedgewars/uUtils.pas
changeset 4665 fa7ad5f3725f
parent 4453 15a483b2558a
child 4737 ca03ce7e0c3f
--- a/hedgewars/uUtils.pas	Fri Dec 24 10:04:01 2010 -0500
+++ b/hedgewars/uUtils.pas	Fri Dec 24 11:54:34 2010 -0500
@@ -277,18 +277,22 @@
 
 function GetLaunchX(at: TAmmoType; dir: LongInt; angle: LongInt): LongInt;
 begin
+    GetLaunchX:= 0
+(*
     if (Ammoz[at].ejectX <> 0) or (Ammoz[at].ejectY <> 0) then
         GetLaunchX:= sign(dir) * (8 + hwRound(AngleSin(angle) * Ammoz[at].ejectX) + hwRound(AngleCos(angle) * Ammoz[at].ejectY))
     else
-        GetLaunchX:= 0
+        GetLaunchX:= 0 *)
 end;
 
 function GetLaunchY(at: TAmmoType; angle: LongInt): LongInt;
 begin
+    GetLaunchY:= 0
+(*
     if (Ammoz[at].ejectX <> 0) or (Ammoz[at].ejectY <> 0) then
         GetLaunchY:= hwRound(AngleSin(angle) * Ammoz[at].ejectY) - hwRound(AngleCos(angle) * Ammoz[at].ejectX) - 2
     else
-        GetLaunchY:= 0
+        GetLaunchY:= 0*)
 end;
 
 function CheckNoTeamOrHH: boolean;