Drop rubber duck like dynamite
authorWuzzy <almikes@aol.com>
Mon, 24 Apr 2017 19:31:53 +0200
changeset 12318 f4d3810a3b54
parent 12317 b81a1d1497c4
child 12319 09b0a709c4bb
Drop rubber duck like dynamite
hedgewars/uGearsHedgehog.pas
--- 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