Merge pull request 'bugfix-citysizing' (#7) from bugfix-citysizing into master

Reviewed-on: #7
This commit was merged in pull request #7.
This commit is contained in:
2022-05-22 13:07:27 +00:00
2 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -2416,9 +2416,8 @@ public class Enum {
public enum CityBoundsType {
GRID(448),
TERRAFORM(544),
ZONE(672),
GRID(576),
ZONE(640),
SIEGE(814);
public final float extents;
+2 -2
View File
@@ -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