# HG changeset patch # User Urbertar # Date 1364488493 -7200 # Node ID b885b995aa95c0d999d9f7757201eb6b8bc82cff # Parent 636cd1b8361d81cd8ee4753126bd0a62fcdb9716 Fix TestCollExcludingMe function. Now it doesn't skip test if there are more then one hog at checking pixel diff -r 636cd1b8361d -r b885b995aa95 hedgewars/uAIMisc.pas --- a/hedgewars/uAIMisc.pas Thu Mar 28 18:34:30 2013 +0200 +++ b/hedgewars/uAIMisc.pas Thu Mar 28 18:34:53 2013 +0200 @@ -266,7 +266,7 @@ MeX:= hwRound(Me^.X); MeY:= hwRound(Me^.Y); // We are still inside the hog. Skip radius test - if ((((x-MeX)*(x-MeX)) + ((y-MeY)*(y-MeY))) < 256) and (Land[y, x] <= lfAllObjMask) then + if ((((x-MeX)*(x-MeX)) + ((y-MeY)*(y-MeY))) < 256) and (Land[y, x] <= lfAllObjMask) and ((Land[y, x] and lfObjMask) < 2) then exit(false); end; TestCollExcludingMe:= TestColl(x, y, r)