change debug mode detection for file watcher
This commit is contained in:
parent
ac49967a61
commit
01ce289fd6
|
@ -139,10 +139,11 @@ Public Class OverworldScreen
|
|||
'Load the particle texture.
|
||||
Me._particlesTexture = TextureManager.GetTexture("GUI\Overworld\Particles")
|
||||
|
||||
' start watching files for changes
|
||||
#If DEBUG Then
|
||||
DebugFileWatcher.StartWatching()
|
||||
#End If
|
||||
If GameController.IS_DEBUG_ACTIVE Then
|
||||
' start watching files for changes
|
||||
DebugFileWatcher.StartWatching()
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
''' <summary>
|
||||
|
|
|
@ -700,9 +700,9 @@ Public Class Level
|
|||
Public Sub Load(ByVal Levelpath As String)
|
||||
|
||||
' copy all changed files
|
||||
#If DEBUG Then
|
||||
DebugFileWatcher.TriggerReload()
|
||||
#End If
|
||||
If GameController.IS_DEBUG_ACTIVE Then
|
||||
DebugFileWatcher.TriggerReload()
|
||||
End If
|
||||
|
||||
' Create a parameter array to pass over to the LevelLoader:
|
||||
Dim params As New List(Of Object)
|
||||
|
|
Loading…
Reference in New Issue