From daa651bf36d272c4d98520fa36a7b8b7d1c515ea Mon Sep 17 00:00:00 2001 From: M&M Date: Thu, 29 Apr 2021 22:50:48 -0700 Subject: [PATCH] add missing if windows fixes html5 compiling --- source/PlayState.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/PlayState.hx b/source/PlayState.hx index 806f80a..a6e084c 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -1110,7 +1110,9 @@ class PlayState extends MusicBeatState var luaWiggles:Array = []; + #if windows public static var luaModchart:ModchartState = null; + #end function startCountdown():Void { @@ -1808,11 +1810,13 @@ class PlayState extends MusicBeatState if (FlxG.keys.justPressed.EIGHT) { FlxG.switchState(new AnimationDebug(SONG.player2)); + #if windows if (luaModchart != null) { luaModchart.die(); luaModchart = null; } + #end } #end