Browse Source

Proper setting of maxpy

combat-2
MagicBot 1 year ago
parent
commit
dd01fd1688
  1. 6
      src/engine/InterestManagement/Terrain.java

6
src/engine/InterestManagement/Terrain.java

@ -196,8 +196,8 @@ public class Terrain { @@ -196,8 +196,8 @@ public class Terrain {
else
xval = Math.min(maxp, 0.4f);
float maxpy = this.zone.max_blend / this.zone.major_radius;
float minpy = this.zone.min_blend / this.zone.minor_radius;
float maxpy = this.zone.max_blend / this.zone.minor_radius;
float yval;
@ -208,9 +208,9 @@ public class Terrain { @@ -208,9 +208,9 @@ public class Terrain {
float value;
if (normalizedLoc.x <= 1 - xval || normalizedLoc.x <= normalizedLoc.y) {
if (normalizedLoc.x <= 1 - xval || normalizedLoc.y <= 1 - yval) {
if (normalizedLoc.x < 1 - yval)
if (normalizedLoc.x < 1 - xval)
return 1;
value = (normalizedLoc.y - (1 - yval)) / yval;

Loading…
Cancel
Save