hedgewars/uGearsHedgehog.pas
changeset 12323 f4d3810a3b54
parent 12309 95cd64676f73
child 12327 9aa483762025
--- a/hedgewars/uGearsHedgehog.pas	Mon Apr 24 19:21:43 2017 +0200
+++ b/hedgewars/uGearsHedgehog.pas	Mon Apr 24 19:31:53 2017 +0200
@@ -332,7 +332,7 @@
                                  else
                                      // Duck spawned in air, normal drop sound
                                      PlaySound(sndDuckDrop);
-                                 newGear:= AddGear(hwRound(lx), hwRound(ly), gtDuck, 0, _0, _0, 0);
+                                 newGear:= AddGear(hwRound(lx) + hwSign(dX) * 7, hwRound(ly), gtDuck, 0, SignAs(_0_03, dX), _0, 0);
                                  if not ((not dX.isNegative) xor ((State and gstHHHJump) <> 0)) then
                                      newGear^.Tag:= -1
                                  else