Browse Source

Configure player cities and PLANAR

magicbox-1.5.2
MagicBot 1 year ago
parent
commit
02a9256950
  1. 3
      src/engine/InterestManagement/Terrain.java

3
src/engine/InterestManagement/Terrain.java

@ -26,7 +26,6 @@ public class Terrain {
public Vector2f cell_size = new Vector2f(); public Vector2f cell_size = new Vector2f();
public Vector2f cell_count = new Vector2f(); public Vector2f cell_count = new Vector2f();
public float terrain_scale; public float terrain_scale;
public int template;
public int heightmap; public int heightmap;
public Terrain(Zone zone) { public Terrain(Zone zone) {
@ -41,7 +40,7 @@ public class Terrain {
this.terrain_size.x = zone.major_radius; this.terrain_size.x = zone.major_radius;
this.terrain_size.y = zone.minor_radius; this.terrain_size.y = zone.minor_radius;
this.terrain_pixel_data = _heightmap_pixel_cache.get(heightmap); this.terrain_pixel_data = Terrain._heightmap_pixel_cache.get(heightmap);
this.cell_count.x = 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_count.y = this.terrain_pixel_data[0].length - 1;

Loading…
Cancel
Save