# HG changeset patch # User nemo # Date 1309712019 14400 # Node ID f633d57b971e50eb9dff4b59f978284a897a3b18 # Parent ea8a74951948fef633aa35849c700f5c8ae65c09 adjust test slightly diff -r ea8a74951948 -r f633d57b971e hedgewars/GSHandlers.inc --- a/hedgewars/GSHandlers.inc Sun Jul 03 18:22:07 2011 +0200 +++ b/hedgewars/GSHandlers.inc Sun Jul 03 12:53:39 2011 -0400 @@ -1868,7 +1868,7 @@ i: LongInt; particle: PVisualGear; begin - if not TestCollisionYwithGear(Gear, 1) and (Gear^.dY.QWordValue = 0) then SetLittle(Gear^.dY); + if (Gear^.dY.QWordValue = 0) and (Gear^.dY.QWordValue = 0) and not TestCollisionYwithGear(Gear, 1) then SetLittle(Gear^.dY); Gear^.State := Gear^.State or gstAnimation; if ((Gear^.dX.QWordValue <> 0) or (Gear^.dY.QWordValue <> 0)) then begin