# HG changeset patch # User nemo # Date 1362107449 18000 # Node ID c4536e98c712e801752380ef2caf051cd254ff55 # Parent a4cb6168016e0be82552066e2cec5ab392c11268 Safety check. The main place this can be a problem is on a mild bowl w/ multiple hogs. Could possibly add a hog collision check in here. diff -r a4cb6168016e -r c4536e98c712 hedgewars/uGearsHedgehog.pas --- a/hedgewars/uGearsHedgehog.pas Fri Mar 01 01:05:43 2013 +0100 +++ b/hedgewars/uGearsHedgehog.pas Thu Feb 28 22:10:49 2013 -0500 @@ -1219,7 +1219,7 @@ begin if (Gear^.Message and (gmAllStoppable or gmLJump or gmHJump) = 0) and (Gear^.State and (gstHHJumping or gstHHHJump or gstAttacking) = 0) - and (not Gear^.dY.isNegative) and (TestCollisionYwithGear(Gear, 1) and lfIce <> 0) then + and (not Gear^.dY.isNegative) and (TurnTimeLeft > 0) and (TestCollisionYwithGear(Gear, 1) and lfIce <> 0) then begin slope:= CalcSlopeBelowGear(Gear); if slope.QWordValue > 730144440 then // ignore mild slopes