Fix hog facing direction when landing with parachute
authorWuzzy <Wuzzy2@mail.ru>
Sat, 15 Jun 2019 13:20:29 +0200
changeset 15148 95b72e81a866
parent 15147 5dc3e3f1c0f9
child 15149 a8b1e25040f3
Fix hog facing direction when landing with parachute
hedgewars/uGearsHandlersMess.pas
--- a/hedgewars/uGearsHandlersMess.pas	Sat Jun 15 13:06:15 2019 +0200
+++ b/hedgewars/uGearsHandlersMess.pas	Sat Jun 15 13:20:29 2019 +0200
@@ -2985,6 +2985,10 @@
         with HHGear^ do
             begin
             Message := 0;
+            if Gear^.Tag = 1 then
+                dX := _1
+            else
+                dX := - _1;
             SetLittle(dX);
             dY := _0;
             State := State or gstMoving;