change debug mode detection for file watcher

This commit is contained in:
nilllzz 2018-02-25 11:05:40 +01:00
parent ac49967a61
commit 01ce289fd6
2 changed files with 8 additions and 7 deletions

View File

@ -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>

View File

@ -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)