diff --git a/changelog.md b/changelog.md index 9c5e79f365..66c7eefb02 100644 --- a/changelog.md +++ b/changelog.md @@ -1,12 +1,16 @@ ## 4.6.3 +Hopefully solved RAM-related crashes + +Removed more double icons from many places + Aircraft attack/move range colors entire tile By WhoIsJohannes: -- Show garrison in city screen, so that it's easier to decide whether one should produce a military unit. -- Great people automation -- Order defeated civs after alive civs even if the alive civs score is negative (e.g. for happiness) -- Fix golden age length action text +- Show garrison in city screen +- Great people automation +- Order defeated civs after alive civs even if the alive civs score is negative (e.g. for happiness) +- Fix golden age length action text Notifications can be "selected" - By SomeTroglodyte diff --git a/core/src/com/unciv/ui/components/Fonts.kt b/core/src/com/unciv/ui/components/Fonts.kt index c6d44cc516..cfefeff2a5 100644 --- a/core/src/com/unciv/ui/components/Fonts.kt +++ b/core/src/com/unciv/ui/components/Fonts.kt @@ -295,8 +295,12 @@ object Fonts { Gdx.gl.glReadPixels(0, 0, w, h, GL20.GL_RGBA, GL20.GL_UNSIGNED_BYTE, pixmap.pixels) frameBuffer.end() - spriteBatch.dispose() - frameBuffer.dispose() + // These need to be disposed so they don't clog up the RAM *but not right now* + Gdx.app.postRunnable { + spriteBatch.dispose() + frameBuffer.dispose() + } + // Pixmap is now *upside down* so we need to flip it around the y axis for (i in 0..w) diff --git a/core/src/com/unciv/ui/screens/cityscreen/DetailedStatsPopup.kt b/core/src/com/unciv/ui/screens/cityscreen/DetailedStatsPopup.kt index e1c9ca45b8..8d39eb4f95 100644 --- a/core/src/com/unciv/ui/screens/cityscreen/DetailedStatsPopup.kt +++ b/core/src/com/unciv/ui/screens/cityscreen/DetailedStatsPopup.kt @@ -123,7 +123,7 @@ class DetailedStatsPopup( if (onlyWithStat != null && finalStats[onlyWithStat!!] == 0f) continue - val label = source.toLabel().apply { + val label = source.toLabel(hideIcons = true).apply { setAlignment(Align.left) onClick { sourceHighlighted = if (sourceHighlighted == source) null else source @@ -224,7 +224,7 @@ class DetailedStatsPopup( continue } - val label = text.toLabel().apply { + val label = text.toLabel(hideIcons = true).apply { setAlignment(Align.left) onClick { sourceHighlighted = if (sourceHighlighted == text) null else text