Browse Source

Cleanup in bounds configuration

magicbox-1.5.2
MagicBot 1 year ago
parent
commit
da238b9986
  1. 7
      src/engine/objects/Zone.java

7
src/engine/objects/Zone.java

@ -168,13 +168,6 @@ public class Zone extends AbstractGameObject { @@ -168,13 +168,6 @@ public class Zone extends AbstractGameObject {
this.bounds = Bounds.borrow();
// Player cities are assigned default value
if (this.loadNum == 0) {
bounds.setBounds(new Vector2f(this.absX, this.absZ), new Vector2f(Enum.CityBoundsType.ZONE.halfExtents, Enum.CityBoundsType.ZONE.halfExtents), 0.0f);
return;
}
Vector2f zoneSize = ZoneManager._zone_size_data.get(this.loadNum);
// Default to player zone size on error? Maybe log this

Loading…
Cancel
Save