hedgewars/uGearsUtils.pas
changeset 15151 6b7d92fa4912
parent 15057 1a754860b0e5
child 15152 5dc3e3f1c0f9
--- a/hedgewars/uGearsUtils.pas	Sat Jun 15 12:10:42 2019 +0200
+++ b/hedgewars/uGearsUtils.pas	Sat Jun 15 12:58:01 2019 +0200
@@ -1861,7 +1861,9 @@
 var sign: LongInt;
 begin
     sign:= hwSign(Gear^.dX);
-    if ((Gear^.State and gstHHHJump) <> 0) and (Gear^.Hedgehog^.Effects[heArtillery] = 0) then
+    if (CurAmmoGear <> nil) and (CurAmmoGear^.Kind = gtParachute) then
+        IsHogFacingLeft:= CurAmmoGear^.Tag = -1
+    else if ((Gear^.State and gstHHHJump) <> 0) and (Gear^.Hedgehog^.Effects[heArtillery] = 0) then
         IsHogFacingLeft:= sign > 0
     else
         IsHogFacingLeft:= sign < 0;