From 7e99e8c7a4c9f9dfa964bf5b62a3a03a80771ae8 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 12 Nov 2023 11:13:27 -0500 Subject: [PATCH] Height and width flipped. --- src/engine/InterestManagement/Terrain.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/InterestManagement/Terrain.java b/src/engine/InterestManagement/Terrain.java index 6db45144..8c98d117 100644 --- a/src/engine/InterestManagement/Terrain.java +++ b/src/engine/InterestManagement/Terrain.java @@ -53,8 +53,8 @@ public class Terrain { this.terrain_size.x = this.zone.major_radius * 2; this.terrain_size.y = this.zone.minor_radius * 2; - this.cell_count.x = this.terrain_pixel_data[0].length - 1; - this.cell_count.y = this.terrain_pixel_data.length - 1; + this.cell_count.x = this.terrain_pixel_data.length - 1; + this.cell_count.y = this.terrain_pixel_data[0].length - 1; this.cell_size.x = terrain_size.x / this.cell_count.x; this.cell_size.y = terrain_size.y / this.cell_count.y;