diff --git a/install/open-ig-0.95.258.jar b/install/open-ig-0.95.258.jar new file mode 100644 index 00000000..3712485d Binary files /dev/null and b/install/open-ig-0.95.258.jar differ diff --git a/open-ig-config.xml b/open-ig-config.xml index 074ee465..a6045d7b 100644 --- a/open-ig-config.xml +++ b/open-ig-config.xml @@ -21,7 +21,7 @@ false true true -false +true false false false diff --git a/src/hu/openig/model/Configuration.java b/src/hu/openig/model/Configuration.java index 6155c900..591da414 100644 --- a/src/hu/openig/model/Configuration.java +++ b/src/hu/openig/model/Configuration.java @@ -35,7 +35,7 @@ */ public class Configuration { /** The version string. */ - public static final String VERSION = "0.95.257"; + public static final String VERSION = "0.95.258"; /** Annotation for indicating load/save a field. */ @Retention(RetentionPolicy.RUNTIME) @interface LoadSave { } diff --git a/src/hu/openig/model/PlanetSurface.java b/src/hu/openig/model/PlanetSurface.java index a81e46bc..f7ad7739 100644 --- a/src/hu/openig/model/PlanetSurface.java +++ b/src/hu/openig/model/PlanetSurface.java @@ -954,6 +954,12 @@ public SurfaceCellArray copy() { copyObject.surfaceArray = this.surfaceArray.clone(); return copyObject; } + + public void scale(int factor) { + surfaceWidth *= factor; + surfaceHeight *= factor; + surfaceArray = new byte[surfaceWidth * surfaceHeight]; + } /** * Calculate the unique array index for the specified coordinates. * The even isometric surface columns are shifted up when calculating the index for each tile location. diff --git a/src/hu/openig/model/World.java b/src/hu/openig/model/World.java index c8fed177..0abdede2 100644 --- a/src/hu/openig/model/World.java +++ b/src/hu/openig/model/World.java @@ -3402,6 +3402,8 @@ void prepareLayout() { ps.features = new ArrayList<>(features.size() * pscale * pscale); ps.setSize(w0 * pscale, h0 * pscale); + ps.surfaceCells.scale(pscale); + for (int i = 0; i < pscale; i++) { for (int j = 0; j < pscale; j++) { for (Map.Entry e : map.entrySet()) { diff --git a/update.xml b/update.xml index 5d85348d..57c01325 100644 --- a/update.xml +++ b/update.xml @@ -23,7 +23,7 @@ The launcher's main file - + Az Open Imperium Galactica játék. @@ -42,6 +42,9 @@ Bugfixes + + Fix a crash when using planet scaling settings. + Fix the success condition of Mission 3 - Escort Carrier. @@ -337,7 +340,7 @@ Fixed AI unable to build a power plant if the missing energy was above the capacity of available power plant types. - +