# HG changeset patch # User nemo # Date 1350868510 14400 # Node ID cf6261f7fdb53ad570307b5810f90c9ecd56a4e2 # Parent ad238b677572d42c1b54da57f0ef1a5a57f7a726 Disable jiggling of cleavers 'cause it just looks odd. Adding a constraint based on proximity to portal is an option too, this was just easier. diff -r ad238b677572 -r cf6261f7fdb5 hedgewars/GSHandlers.inc --- a/hedgewars/GSHandlers.inc Sun Oct 21 21:14:33 2012 -0400 +++ b/hedgewars/GSHandlers.inc Sun Oct 21 21:15:10 2012 -0400 @@ -4044,7 +4044,7 @@ iterator:= GearsList; while iterator <> nil do begin - if not (iterator^.Kind in [gtPortal, gtAirAttack]) and ((iterator^.Hedgehog <> CurrentHedgehog) + if not (iterator^.Kind in [gtPortal, gtAirAttack, gtKnife]) and ((iterator^.Hedgehog <> CurrentHedgehog) or ((iterator^.Message and gmAllStoppable) = 0)) then begin iterator^.Active:= true; @@ -5277,7 +5277,7 @@ // debug for when we couldn't get an angle //AddVisualGear(hwRound(Gear^.X), hwRound(Gear^.Y), vgtSmokeWhite); *) - Gear^.DirAngle:= DxDy2Angle(Gear^.dX, Gear^.dY) + (random(20)-10); + Gear^.DirAngle:= DxDy2Angle(Gear^.dX, Gear^.dY) + (random(30)-15); if (Gear^.dX.isNegative and Gear^.dY.isNegative) or ((not Gear^.dX.isNegative) and (not Gear^.dY.isNegative)) then Gear^.DirAngle:= Gear^.DirAngle-90; // end