# HG changeset patch
# User nemo
# Date 1367955276 14400
# Node ID 962ede906da1672c93b5b8154a638b594980b226
# Parent  1a8335f0d9689f18c5133eda399ba8ef45395d53
☹

diff -r 1a8335f0d968 -r 962ede906da1 hedgewars/uAIMisc.pas
--- a/hedgewars/uAIMisc.pas	Tue May 07 14:59:30 2013 -0400
+++ b/hedgewars/uAIMisc.pas	Tue May 07 15:34:36 2013 -0400
@@ -410,7 +410,7 @@
                     end;
             exit(0)
             end;
-        if (y > cWaterLine) or (x > leftX) or (x < rightX) then exit(-1)
+        if (y > cWaterLine) or (x > rightX) or (x < leftX) then exit(-1)
         end
 end;
 
@@ -463,7 +463,7 @@
                     end;
             exit(0)
         end;
-        if (y > cWaterLine) or (x > leftX) or (x < rightX) then
+        if (y > cWaterLine) or (x > rightX) or (x < leftX) then
             // returning -1 for drowning so it can be considered in the Rate routine
             exit(-1)
     end;