hedgewars/uAIMisc.pas
changeset 7214 befce0edf527
parent 7210 2ff30b79d2b0
child 7274 a07777b818f1
--- a/hedgewars/uAIMisc.pas	Sat Jun 09 23:35:55 2012 +0400
+++ b/hedgewars/uAIMisc.pas	Sat Jun 09 16:51:56 2012 -0400
@@ -343,12 +343,13 @@
         x:= x + dX;
         y:= y + dY;
         dY:= dY + cGravityf;
-
+(*
         if ((trunc(y) and LAND_HEIGHT_MASK) = 0) and ((trunc(x) and LAND_WIDTH_MASK) = 0) then 
             begin
             LandPixels[trunc(y), trunc(x)]:= v;
             UpdateLandTexture(trunc(X), 1, trunc(Y), 1, true);
             end;
+*)
 
         // consider adding dX/dY calc here for fall damage
         if TestCollExcludingObjects(trunc(x), trunc(y), cHHRadius) then
@@ -446,7 +447,7 @@
         if dmg > 0 then
             begin
             if (Flags and afSetSkip <> 0) then skip:= true;
-            if (Flags and afTrackFall <> 0) then 
+            if (Flags and afTrackFall <> 0) and (Score > 0) then 
                 fallDmg:= trunc(TraceShoveFall(Point.x, Point.y - 2, dX, dY) * dmgMod);
             if fallDmg < 0 then // drowning. score healthier hogs higher, since their death is more likely to benefit the AI
                 if Score > 0 then