forked from MagicBane/Server
Proper setting of maxpy
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user