Commit f76d6c0d authored by Remy Garnier's avatar Remy Garnier
Browse files

AI.java

parent 4760b0e5
...@@ -82,7 +82,7 @@ public class AI { ...@@ -82,7 +82,7 @@ public class AI {
int disx=(obj_x-source_x); int disx=(obj_x-source_x);
int disy=(obj_y-source_y); int disy=(obj_y-source_y);
//In the case where the object are in the same AITile //In the case where the object are in the same AITile
if (java.lang.Math.abs(disx)<32 && java.lang.Math.abs(disy)<32) if (java.lang.Math.abs(disx)<=32 && java.lang.Math.abs(disy)<=32)
{ {
return DirectPath(obj_x,obj_y,source_x,source_y); return DirectPath(obj_x,obj_y,source_x,source_y);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment