diff -r 92535bc7e928 -r 15c3fb4882df hedgewars/uGearsRender.pas --- a/hedgewars/uGearsRender.pas Fri Jul 13 13:21:52 2012 +0400 +++ b/hedgewars/uGearsRender.pas Sat Jul 14 23:19:09 2012 -0400 @@ -21,7 +21,7 @@ unit uGearsRender; interface -uses uTypes, uConsts, GLunit, uFloat, SDLh; +uses uTypes, uConsts, GLunit, uFloat, SDLh, uRandom; procedure RenderGear(Gear: PGear; x, y: LongInt); @@ -287,6 +287,7 @@ dy:= -Cos(Gear^.Angle * pi / cMaxAngle); if cLaserSighting then begin + GetRandom(2); // no, this does not prevent it, just makes things harder lx:= GetLaunchX(HH^.CurAmmoType, sign * m, Gear^.Angle); ly:= GetLaunchY(HH^.CurAmmoType, Gear^.Angle); @@ -1213,9 +1214,8 @@ else DrawLine(hwRound(HHGear^.X), hwRound(HHGear^.Y), hwRound(Gear^.X), hwRound(Gear^.Y), 4.0, i, i, $FF, $40); end end - end - - + end; + gtGenericFaller: DrawCircle(x, y, 3, 3, $FF, $00, $00, $FF); // debug end; if Gear^.RenderTimer and (Gear^.Tex <> nil) then DrawTextureCentered(x + 8, y + 8, Gear^.Tex);