diff --git a/core/src/com/unciv/ui/saves/LoadGameScreen.kt b/core/src/com/unciv/ui/saves/LoadGameScreen.kt index a44f5b5083..d9480451fb 100644 --- a/core/src/com/unciv/ui/saves/LoadGameScreen.kt +++ b/core/src/com/unciv/ui/saves/LoadGameScreen.kt @@ -115,7 +115,7 @@ class LoadGameScreen(previousScreen:CameraStageBaseScreen) : PickerScreen() { private fun updateLoadableGames(showAutosaves:Boolean) { saveTable.clear() for (save in GameSaver.getSaves().sortedByDescending { GameSaver.getSave(it).lastModified() }) { - if(save.startsWith("Autosave") && !showAutosaves) continue + if (save.startsWith("Autosave") && !showAutosaves) continue val textButton = TextButton(save, skin) textButton.onClick { selectedSave = save diff --git a/core/src/com/unciv/ui/worldscreen/bottombar/BattleTable.kt b/core/src/com/unciv/ui/worldscreen/bottombar/BattleTable.kt index f2689ab7e1..5700a27e37 100644 --- a/core/src/com/unciv/ui/worldscreen/bottombar/BattleTable.kt +++ b/core/src/com/unciv/ui/worldscreen/bottombar/BattleTable.kt @@ -208,14 +208,9 @@ class BattleTable(val worldScreen: WorldScreen): Table() { else { attackButton.onClick { - try { - Battle.moveAndAttack(attacker, attackableTile) - worldScreen.mapHolder.unitActionOverlay?.remove() // the overlay was one of attacking - worldScreen.shouldUpdate = true - } - catch (ex:Exception){ - openBugReportPopup() - } + Battle.moveAndAttack(attacker, attackableTile) + worldScreen.mapHolder.unitActionOverlay?.remove() // the overlay was one of attacking + worldScreen.shouldUpdate = true } } @@ -285,15 +280,9 @@ class BattleTable(val worldScreen: WorldScreen): Table() { } else { attackButton.onClick { - try { - Battle.nuke(attacker, targetTile) - worldScreen.mapHolder.unitActionOverlay?.remove() // the overlay was one of attacking - worldScreen.shouldUpdate = true - - } - catch (ex:Exception){ - openBugReportPopup() - } + Battle.nuke(attacker, targetTile) + worldScreen.mapHolder.unitActionOverlay?.remove() // the overlay was one of attacking + worldScreen.shouldUpdate = true } }