From 894427af72ba6f8f572d0598142f06941c449214 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 12 May 2022 15:33:43 -0400 Subject: [PATCH 1/2] Using original MB values when sizing city terraform. --- src/engine/Enum.java | 3 +-- src/engine/objects/Zone.java | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/engine/Enum.java b/src/engine/Enum.java index 29924c7e..54d9acfa 100644 --- a/src/engine/Enum.java +++ b/src/engine/Enum.java @@ -2416,8 +2416,7 @@ public class Enum { public enum CityBoundsType { - GRID(448), - TERRAFORM(544), + GRID(640), ZONE(672), SIEGE(814); diff --git a/src/engine/objects/Zone.java b/src/engine/objects/Zone.java index eb9e5792..18cccae9 100644 --- a/src/engine/objects/Zone.java +++ b/src/engine/objects/Zone.java @@ -359,8 +359,8 @@ public class Zone extends AbstractGameObject { if (zone.playerCityID > 0) { writer.put((byte) 1); // Player City - True - writer.putFloat(Enum.CityBoundsType.TERRAFORM.extents); - writer.putFloat(Enum.CityBoundsType.TERRAFORM.extents); + writer.putFloat(Enum.CityBoundsType.ZONE.extents); + writer.putFloat(Enum.CityBoundsType.ZONE.extents); } else writer.put((byte) 0); // Player City - False -- 2.30.2 From 638985d33224ea52e3db9dbf7444e956bcb34ee9 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 13 May 2022 13:38:52 -0400 Subject: [PATCH 2/2] Revert grid sizing to 576/640 per 2018 commit. --- src/engine/Enum.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/Enum.java b/src/engine/Enum.java index 54d9acfa..9bed45a7 100644 --- a/src/engine/Enum.java +++ b/src/engine/Enum.java @@ -2416,8 +2416,8 @@ public class Enum { public enum CityBoundsType { - GRID(640), - ZONE(672), + GRID(576), + ZONE(640), SIEGE(814); public final float extents; -- 2.30.2