Fixed audio settings reset in the in-game options

This commit is contained in:
JappaWakka 2022-07-10 10:26:36 +02:00
parent 5c96afb81e
commit 960c82e940
1 changed files with 14 additions and 12 deletions

View File

@ -1022,18 +1022,20 @@
End Sub End Sub
Private Sub Close() Private Sub Close()
If currentLanguage <> TempLanguage Then If PreScreen.Identification = Identifications.MainMenuScreen Then
Localization.Load(TempLanguage) If currentLanguage <> TempLanguage Then
End If Localization.Load(TempLanguage)
If MusicManager.MasterVolume * 100 <> Me.TempMusicVolume Then End If
MusicManager.MasterVolume = CSng(Me.TempMusicVolume / 100) If MusicManager.MasterVolume * 100 <> Me.TempMusicVolume Then
End If MusicManager.MasterVolume = CSng(Me.TempMusicVolume / 100)
If SoundManager.Volume * 100 <> Me.TempSoundVolume Then End If
SoundManager.Volume = CSng(Me.TempSoundVolume / 100) If SoundManager.Volume * 100 <> Me.TempSoundVolume Then
End If SoundManager.Volume = CSng(Me.TempSoundVolume / 100)
If MusicManager.Muted <> CBool(Me.TempMuted) Or SoundManager.Muted <> CBool(Me.TempMuted) Then End If
MusicManager.Muted = CBool(Me.TempMuted) If MusicManager.Muted <> CBool(Me.TempMuted) Or SoundManager.Muted <> CBool(Me.TempMuted) Then
SoundManager.Muted = CBool(Me.TempMuted) MusicManager.Muted = CBool(Me.TempMuted)
SoundManager.Muted = CBool(Me.TempMuted)
End If
End If End If
_closing = True _closing = True
End Sub End Sub