Damaged hog is not in a jumping state
authorunc0rr
Wed, 13 Jan 2016 21:29:04 +0300
changeset 11510 64c1ea171204
parent 11509 6a5bdf930edf
child 11511 2d26ad94a731
Damaged hog is not in a jumping state
hedgewars/uGearsHedgehog.pas
--- a/hedgewars/uGearsHedgehog.pas	Wed Jan 13 19:54:55 2016 +0300
+++ b/hedgewars/uGearsHedgehog.pas	Wed Jan 13 21:29:04 2016 +0300
@@ -936,6 +936,7 @@
     land:= TestCollisionYwithGear(Gear, 1);
     if ((Gear^.dX.QWordValue + Gear^.dY.QWordValue) < _0_55.QWordValue) and ((land and lfIce) = 0)
     and ((land and lfBouncy = 0) or (Gear^.State and gstCollision <> 0))
+    and (Gear^.Damage = 0)
     and ((Gear^.State and gstHHJumping) <> 0) then
         SetLittle(Gear^.dX);