Fix hog sometimes not falling after using resurrector
authorWuzzy <Wuzzy2@mail.ru>
Mon, 06 Jul 2020 22:48:20 +0200
changeset 15716 2a69c6693fbb
parent 15715 2aedd8ca836c
child 15717 eeab5b90c082
Fix hog sometimes not falling after using resurrector
ChangeLog.txt
hedgewars/uGearsHandlersMess.pas
--- a/ChangeLog.txt	Mon Jul 06 16:55:35 2020 +0200
+++ b/ChangeLog.txt	Mon Jul 06 22:48:20 2020 +0200
@@ -18,6 +18,7 @@
  * Fix many projectiles not being affected by Heavy Wind after turn end
  * Fix hog getting stuck when opening parachute right after a shoryuken digging through land
  * Fix game hanging if computer hog has nothing to attack
+ * Fix hog sometimes not falling after resurrection
 
 Campaigns:
  + A Space Adventure: Spacetrip: Meteorite appears blown-up after victory
--- a/hedgewars/uGearsHandlersMess.pas	Mon Jul 06 16:55:35 2020 +0200
+++ b/hedgewars/uGearsHandlersMess.pas	Mon Jul 06 22:48:20 2020 +0200
@@ -6270,7 +6270,7 @@
                     LoadHedgehogHat(resgear^.Hedgehog^, 'Reserved/Zombie');
                 end;
 
-        hh^.Gear^.dY := _0;
+        hh^.Gear^.dY := -cLittle;
         hh^.Gear^.dX := _0;
         doStepHedgehogMoving(hh^.Gear);
         StopSoundChan(Gear^.SoundChannel);