mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-08 23:08:35 +07:00
Fix Main Menu BG map cycle not stopping on user action (#9229)
This commit is contained in:
@ -258,12 +258,12 @@ class MainMenuScreen: BaseScreen(), RecreateOnResize {
|
||||
}
|
||||
|
||||
private fun stopBackgroundMapGeneration() {
|
||||
backgroundStack.clearActions()
|
||||
val currentJob = backgroundMapGenerationJob
|
||||
?: return
|
||||
backgroundMapGenerationJob = null
|
||||
if (currentJob.isCancelled) return
|
||||
currentJob.cancel()
|
||||
backgroundStack.clearActions()
|
||||
}
|
||||
|
||||
private fun resumeGame() {
|
||||
|
Reference in New Issue
Block a user