From 80799753be4705a9b80e628558284aaf688eebd8 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 15 Oct 2023 17:23:16 -0400 Subject: [PATCH] Comment cleanup --- src/engine/InterestManagement/Terrain.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/InterestManagement/Terrain.java b/src/engine/InterestManagement/Terrain.java index 4b9f7cac..d6d2ee7e 100644 --- a/src/engine/InterestManagement/Terrain.java +++ b/src/engine/InterestManagement/Terrain.java @@ -58,8 +58,8 @@ public class Terrain { this.cell_size.x = terrain_size.x / this.cell_count.x; this.cell_size.y = terrain_size.y / this.cell_count.y; - // Blending and height scaling configuration. These ratios are used to - // determine the blending area between child and parent terrains when + // Blending configuration. These ratios are used to calculate + // the blending area between child and parent terrains when // they are stitched together. Vector2f major_blend = new Vector2f(this.zone.max_blend / this.zone.major_radius, @@ -78,6 +78,8 @@ public class Terrain { else blend_ratio.y = Math.min(minor_blend.x, 0.4f); + // Scale coefficient for this terrain + this.terrain_scale = this.zone.terrain_max_y / 255f; }