equal
deleted
inserted
replaced
275 end; |
275 end; |
276 |
276 |
277 |
277 |
278 function GetLaunchX(at: TAmmoType; dir: LongInt; angle: LongInt): LongInt; |
278 function GetLaunchX(at: TAmmoType; dir: LongInt; angle: LongInt): LongInt; |
279 begin |
279 begin |
|
280 GetLaunchX:= 0 |
|
281 (* |
280 if (Ammoz[at].ejectX <> 0) or (Ammoz[at].ejectY <> 0) then |
282 if (Ammoz[at].ejectX <> 0) or (Ammoz[at].ejectY <> 0) then |
281 GetLaunchX:= sign(dir) * (8 + hwRound(AngleSin(angle) * Ammoz[at].ejectX) + hwRound(AngleCos(angle) * Ammoz[at].ejectY)) |
283 GetLaunchX:= sign(dir) * (8 + hwRound(AngleSin(angle) * Ammoz[at].ejectX) + hwRound(AngleCos(angle) * Ammoz[at].ejectY)) |
282 else |
284 else |
283 GetLaunchX:= 0 |
285 GetLaunchX:= 0 *) |
284 end; |
286 end; |
285 |
287 |
286 function GetLaunchY(at: TAmmoType; angle: LongInt): LongInt; |
288 function GetLaunchY(at: TAmmoType; angle: LongInt): LongInt; |
287 begin |
289 begin |
|
290 GetLaunchY:= 0 |
|
291 (* |
288 if (Ammoz[at].ejectX <> 0) or (Ammoz[at].ejectY <> 0) then |
292 if (Ammoz[at].ejectX <> 0) or (Ammoz[at].ejectY <> 0) then |
289 GetLaunchY:= hwRound(AngleSin(angle) * Ammoz[at].ejectY) - hwRound(AngleCos(angle) * Ammoz[at].ejectX) - 2 |
293 GetLaunchY:= hwRound(AngleSin(angle) * Ammoz[at].ejectY) - hwRound(AngleCos(angle) * Ammoz[at].ejectX) - 2 |
290 else |
294 else |
291 GetLaunchY:= 0 |
295 GetLaunchY:= 0*) |
292 end; |
296 end; |
293 |
297 |
294 function CheckNoTeamOrHH: boolean; |
298 function CheckNoTeamOrHH: boolean; |
295 begin |
299 begin |
296 CheckNoTeamOrHH:= (CurrentTeam = nil) or (CurrentHedgehog^.Gear = nil); |
300 CheckNoTeamOrHH:= (CurrentTeam = nil) or (CurrentHedgehog^.Gear = nil); |