# HG changeset patch # User Wuzzy # Date 1595109194 -7200 # Node ID f9c2fd4bfb3e3c2fb8bdf05b6da141b1ad5f2a14 # Parent 12973ea952c6dddd7e72f03ad768ada0facbd500 Fix some incorrect AI collision checks diff -r 12973ea952c6 -r f9c2fd4bfb3e hedgewars/uAIMisc.pas --- a/hedgewars/uAIMisc.pas Fri Jul 17 02:51:25 2020 +0200 +++ b/hedgewars/uAIMisc.pas Sat Jul 18 23:53:14 2020 +0200 @@ -402,7 +402,7 @@ if (Land[y-r, x-r] > lfAllObjMask) or (Land[y+r, x-r] > lfAllObjMask) or - (Land[y-r, x-r] > lfAllObjMask) or + (Land[y-r, x+r] > lfAllObjMask) or (Land[y+r, x+r] > lfAllObjMask) then exit(true); @@ -416,7 +416,7 @@ if (Land[y-r, x-r] and lfNotCurHogCrate <> 0) or (Land[y+r, x-r] and lfNotCurHogCrate <> 0) or - (Land[y+r, x-r] and lfNotCurHogCrate <> 0) or + (Land[y-r, x+r] and lfNotCurHogCrate <> 0) or (Land[y+r, x+r] and lfNotCurHogCrate <> 0) then exit(true);