Additional fixes
This commit is contained in:
@@ -198,7 +198,7 @@ public class FortressGenerator{
|
||||
for(IntPositionConsumer i : passes){
|
||||
for(int x = 0; x < gen.width; x++){
|
||||
for(int y = 0; y < gen.height; y++){
|
||||
if(Vector2.dst(x, y, enemyX, enemyY) > coreDst){
|
||||
if(Mathf.dst(x, y, enemyX, enemyY) > coreDst){
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -339,7 +339,7 @@ public class WorldGenerator{
|
||||
|
||||
if(detailed && spawnpoints != null){
|
||||
for(GridPoint2 p : spawnpoints){
|
||||
float dst = Vector2.dst2(p.x, p.y, localX, localY);
|
||||
float dst = Mathf.dst2(p.x, p.y, localX, localY);
|
||||
minDst = Math.min(minDst, dst);
|
||||
|
||||
if(dst < lerpDst){
|
||||
|
||||
Reference in New Issue
Block a user