Skip to content

Commit

Permalink
Release 0.95.258
Browse files Browse the repository at this point in the history
Resolves #1180
  • Loading branch information
akarnokd committed Oct 12, 2024
1 parent e23466b commit d26ca29
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 4 deletions.
Binary file added install/open-ig-0.95.258.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion open-ig-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<entry key="scaleAllScreens">false</entry>
<entry key="aiGroundAttackMixed">true</entry>
<entry key="showStarmapScroll">true</entry>
<entry key="maximized">false</entry>
<entry key="maximized">true</entry>
<entry key="classicControls">false</entry>
<entry key="allowWeather">false</entry>
<entry key="fullScreen">false</entry>
Expand Down
2 changes: 1 addition & 1 deletion src/hu/openig/model/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 { }
Expand Down
6 changes: 6 additions & 0 deletions src/hu/openig/model/PlanetSurface.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions src/hu/openig/model/World.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Location, SurfaceEntity> e : map.entrySet()) {
Expand Down
7 changes: 5 additions & 2 deletions update.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<desc lang='en'>The launcher&#39;s main file</desc>
</file>
</module>
<module id='Game' version='0.95.257'>
<module id='Game' version='0.95.258'>
<general url='https://github.com/akarnokd/open-ig'>
<desc lang='hu'>
Az Open Imperium Galactica játék.
Expand All @@ -42,6 +42,9 @@
<desc lang='es'>Bugfixes</desc>
</notes>
<release-details>
<entry version='0.95.258' date='2024-10-12'>
<item category='Skirmish' issue='1180'>Fix a crash when using planet scaling settings.</item>
</entry>
<entry version='0.95.257' date='2024-10-01'>
<item category='Missions' issue='1178'>Fix the success condition of Mission 3 - Escort Carrier.</item>
</entry>
Expand Down Expand Up @@ -337,7 +340,7 @@
<item category='AI'>Fixed AI unable to build a power plant if the missing energy was above the capacity of available power plant types.</item>
</entry>
</release-details>
<file url='https://github.com/akarnokd/open-ig/raw/master/install/open-ig-0.95.257.jar' sha1='ECDB70068CCD30F44CFD4C3CC9E247F02D925529'/>
<file url='https://github.com/akarnokd/open-ig/raw/master/install/open-ig-0.95.258.jar' sha1='CA1DA798B354FE54D5F5C1EC620961011B7FA22A'/>
<file url='https://github.com/akarnokd/open-ig/raw/master/install/open-ig-upgrade-20240930a2.zip' sha1='BCB4BE3242EF22AD050903FEDC9A48F515C95416'/>
<file url='https://github.com/akarnokd/open-ig/raw/master/install/open-ig-images-20240930a.zip' sha1='09EA802D35E9A124B1A1761CBBB8D8F8C8D06E77'/>
<file url='https://github.com/akarnokd/open-ig/raw/master/open-ig-splash.png' sha1='52b83dbe118575c7dd3dd6c8c41d0446c32dee45'/>
Expand Down

0 comments on commit d26ca29

Please sign in to comment.