diff --git a/src/engine/InterestManagement/Terrain.java b/src/engine/InterestManagement/Terrain.java index 1a2fd1cb..07130aa0 100644 --- a/src/engine/InterestManagement/Terrain.java +++ b/src/engine/InterestManagement/Terrain.java @@ -59,9 +59,6 @@ public class Terrain { this.cell_count.x = this.image_size.x; this.cell_count.y = this.image_size.y; - this.cell_size.x = terrain_size.x / this.cell_count.x; - this.cell_size.y = terrain_size.y / this.cell_count.y; - // Blending configuration. These ratios are used to calculate // the blending area between child and parent terrains when // they are stitched together. @@ -160,7 +157,7 @@ public class Terrain { // Calculate terrain cell with offset - Vector2f terrain_cell = new Vector2f(terrain_loc.x / this.cell_size.x, terrain_loc.y / this.cell_size.y); + Vector2f terrain_cell = new Vector2f(terrain_loc.x / this.cell_count.x, terrain_loc.y / this.cell_count.y); // Clamp values when standing directly on pole