Proper setting of maxpy

This commit is contained in:
2023-10-09 09:22:41 -04:00
parent d2dc95c169
commit dd01fd1688
+3 -3
View File
@@ -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 {
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;