hedgewars/uGearsHandlersMess.pas
changeset 10286 1940e937fc08
parent 10253 ea57f2f2b98d
child 10298 7d5d93f9a515
--- a/hedgewars/uGearsHandlersMess.pas	Thu Jun 12 14:42:48 2014 +0200
+++ b/hedgewars/uGearsHandlersMess.pas	Thu Jun 12 15:17:53 2014 +0200
@@ -2524,7 +2524,7 @@
             (Distance(tx - int2hwFloat(leftX-(rightX-rx)), ty - y) > _256)
             )));
     if distFail
-    or (not TryPlaceOnLand(Gear^.Target.X - SpritesData[Ammoz[Gear^.AmmoType].PosSprite].Width div 2, Gear^.Target.Y - SpritesData[Ammoz[Gear^.AmmoType].PosSprite].Height div 2, Ammoz[Gear^.AmmoType].PosSprite, Gear^.State, true, false, LandFlags)) then
+    or (not TryPlaceOnLand(Gear^.Target.X - SpritesData[Ammoz[Gear^.AmmoType].PosSprite].Width div 2, Gear^.Target.Y - SpritesData[Ammoz[Gear^.AmmoType].PosSprite].Height div 2, Ammoz[Gear^.AmmoType].PosSprite, Gear^.State, true, LandFlags)) then
         begin
         PlaySound(sndDenied);
         if not distFail then
@@ -2594,7 +2594,7 @@
     HHGear := Gear^.Hedgehog^.Gear;
     if not TryPlaceOnLand(Gear^.Target.X - SpritesData[sprHHTelepMask].Width div 2,
         Gear^.Target.Y - SpritesData[sprHHTelepMask].Height div 2,
-        sprHHTelepMask, 0, false, false, not hasBorder, 0) then
+        sprHHTelepMask, 0, false, not hasBorder, 0) then
         begin
         HHGear^.Message := HHGear^.Message and (not gmAttack);
         HHGear^.State := HHGear^.State and (not gstAttacking);