Dictionary key not found fix?
This commit is contained in:
parent
6f0a35b5c7
commit
bd9d651899
|
@ -1,4 +1,6 @@
|
||||||
''' <summary>
|
Imports System.Threading
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
''' The screen to display the default Overworld gameplay.
|
''' The screen to display the default Overworld gameplay.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Class OverworldScreen
|
Public Class OverworldScreen
|
||||||
|
@ -380,6 +382,15 @@ Public Class OverworldScreen
|
||||||
|
|
||||||
'Set to correct music:
|
'Set to correct music:
|
||||||
If TrainerEncountered = False Then
|
If TrainerEncountered = False Then
|
||||||
|
Dim x = 0
|
||||||
|
While (x < 100 And String.IsNullOrEmpty(Level.MusicLoop))
|
||||||
|
Thread.Sleep(20)
|
||||||
|
x = x + 1
|
||||||
|
End While
|
||||||
|
If String.IsNullOrEmpty(Level.MusicLoop)
|
||||||
|
Return
|
||||||
|
End If
|
||||||
|
|
||||||
Dim theme As String = Level.MusicLoop
|
Dim theme As String = Level.MusicLoop
|
||||||
If Screen.Level.Surfing = True Then
|
If Screen.Level.Surfing = True Then
|
||||||
theme = "surf"
|
theme = "surf"
|
||||||
|
|
Loading…
Reference in New Issue