FlyPathFinder:

-Fixed a bit of pathfinding logic to open diagonal path points
This commit is contained in:
Luis C.M committed 2022-11-06 22:37:31 -06:00
1 parent a2236c7bb4
commit e8cea5368f
1 file changed
+6 -6
@@ -253,12 +253,12 @@ public class FlyPathFinder extends PathFinder
pathOptions[i++] = pathpoint5;
}
boolean flag = pathpoint3 == null || pathpoint3.costMalus != 0.0F;
boolean flag1 = pathpoint == null || pathpoint.costMalus != 0.0F;
boolean flag2 = pathpoint2 == null || pathpoint2.costMalus != 0.0F;
boolean flag3 = pathpoint1 == null || pathpoint1.costMalus != 0.0F;
boolean flag4 = pathpoint4 == null || pathpoint4.costMalus != 0.0F;
boolean flag5 = pathpoint5 == null || pathpoint5.costMalus != 0.0F;
boolean flag = pathpoint3 != null && pathpoint3.costMalus >= 0.0F;
boolean flag1 = pathpoint != null && pathpoint.costMalus >= 0.0F;
boolean flag2 = pathpoint2 != null && pathpoint2.costMalus >= 0.0F;
boolean flag3 = pathpoint1 != null && pathpoint1.costMalus >= 0.0F;
boolean flag4 = pathpoint4 != null && pathpoint4.costMalus >= 0.0F;
boolean flag5 = pathpoint5 != null && pathpoint5.costMalus >= 0.0F;
if (flag && flag3)
{