Clear gstHHJumping and gstHHHJump when hog was hurt by explosion
authorWuzzy <Wuzzy2@mail.ru>
Sun, 25 Nov 2018 00:23:32 +0100
changeset 14313 1d4f1d700cdc
parent 14312 f1a5b7baa87f
child 14314 b8871dd33ec4
Clear gstHHJumping and gstHHHJump when hog was hurt by explosion
hedgewars/uGearsUtils.pas
--- a/hedgewars/uGearsUtils.pas	Sat Nov 24 23:54:32 2018 +0100
+++ b/hedgewars/uGearsUtils.pas	Sun Nov 25 00:23:32 2018 +0100
@@ -179,7 +179,7 @@
                                 Gear^.State:= (Gear^.State or gstMoving) and (not gstLoser);
                                 if Gear^.Kind = gtKnife then Gear^.State:= Gear^.State and (not gstCollision);
                                 if (Gear^.Kind = gtHedgehog) and (Gear^.Hedgehog^.Effects[heInvulnerable] = 0) then
-                                    Gear^.State:= (Gear^.State or gstMoving) and (not gstWinner);
+                                    Gear^.State:= (Gear^.State or gstMoving) and (not (gstWinner or gstHHJumping or gstHHHJump));
                                 Gear^.Active:= true;
                                 if Gear^.Kind <> gtFlame then FollowGear:= Gear;
                                 if Gear^.Kind = gtAirMine then