Browse Source

Height and width flipped.

convex-data
MagicBot 1 year ago
parent
commit
536ccc2143
  1. 4
      src/engine/InterestManagement/Terrain.java

4
src/engine/InterestManagement/Terrain.java

@ -53,8 +53,8 @@ public class Terrain {
this.terrain_size.x = this.zone.major_radius * 2; this.terrain_size.x = this.zone.major_radius * 2;
this.terrain_size.y = this.zone.minor_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.x = this.terrain_pixel_data.length - 1;
this.cell_count.y = 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.x = terrain_size.x / this.cell_count.x;
this.cell_size.y = terrain_size.y / this.cell_count.y; this.cell_size.y = terrain_size.y / this.cell_count.y;

Loading…
Cancel
Save