# HG changeset patch # User nemo # Date 1283383892 14400 # Node ID 2ccfc93c6b5e0ac4b772f65dfe131f6c454ddafc # Parent 32cb5e1a6293ea2bd2455a39b59cc82fcddd08e5 Fix for issue #20 diff -r 32cb5e1a6293 -r 2ccfc93c6b5e hedgewars/GSHandlers.inc --- a/hedgewars/GSHandlers.inc Wed Sep 01 22:18:13 2010 +0100 +++ b/hedgewars/GSHandlers.inc Wed Sep 01 19:31:32 2010 -0400 @@ -2486,7 +2486,7 @@ begin Gear^.Tag := 0; Gear^.X := Gear^.X + int2hwFloat(xx); - if not TestCollisionYwithGear(Gear, yyn) then + if not TestCollisionY(Gear, yyn) then begin Gear^.Y := Gear^.Y + int2hwFloat(yyn); NextAngle @@ -2561,6 +2561,7 @@ HHGear := PHedgehog(Gear^.Hedgehog)^.Gear; HHGear^.Message := HHGear^.Message and (not gm_Attack); DeleteCI(HHGear); + Gear^.IntersectGear:= nil; FollowGear := Gear;