mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-14 01:14:49 +02:00
Fix many screens not playing levelmusic when exit
This commit is contained in:
parent
29a790c477
commit
b36a1f2bd3
@ -426,7 +426,6 @@
|
||||
#End Region
|
||||
|
||||
Private Sub CloseScreen()
|
||||
MusicManager.Play(Screen.Level.MusicLoop, True, 0.01F)
|
||||
Core.SetScreen(New TransitionScreen(Me, Me.PreScreen, Color.White, False))
|
||||
End Sub
|
||||
|
||||
|
@ -71,6 +71,14 @@
|
||||
|
||||
Public Overrides Sub Update()
|
||||
If reduce = False Then
|
||||
Dim s As Screen = NewScreen
|
||||
While s.Identification <> Identifications.OverworldScreen AndAlso s.PreScreen IsNot Nothing
|
||||
s = s.PreScreen
|
||||
End While
|
||||
If s.Identification = Identifications.OverworldScreen Then
|
||||
MusicManager.Play(Screen.Level.MusicLoop, True, 0.01F)
|
||||
End If
|
||||
|
||||
alpha += Speed
|
||||
If OldScreen.UpdateFadeOut = True Then
|
||||
OldScreen.Update()
|
||||
|
Loading…
x
Reference in New Issue
Block a user