mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-08 23:08:35 +07:00
Fix ended Leader Voice not cleared and resumed on un-pause (#10724)
This commit is contained in:
@ -663,7 +663,7 @@ class MusicController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun MusicTrackController.overlayTick() {
|
private fun MusicTrackController.overlayTick() {
|
||||||
if (timerTick() != MusicTrackController.State.Idle) return
|
if (!timerTick().canPlay) return
|
||||||
if (!overlayPausing && !isPlaying())
|
if (!overlayPausing && !isPlaying())
|
||||||
clearOverlay() // means FadeOut-to-stop finished
|
clearOverlay() // means FadeOut-to-stop finished
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user