add missing if windows

fixes html5 compiling
This commit is contained in:
M&M 2021-04-29 22:50:48 -07:00
parent a52a4f6bc0
commit daa651bf36

View File

@ -1110,7 +1110,9 @@ class PlayState extends MusicBeatState
var luaWiggles:Array<WiggleEffect> = []; var luaWiggles:Array<WiggleEffect> = [];
#if windows
public static var luaModchart:ModchartState = null; public static var luaModchart:ModchartState = null;
#end
function startCountdown():Void function startCountdown():Void
{ {
@ -1808,11 +1810,13 @@ class PlayState extends MusicBeatState
if (FlxG.keys.justPressed.EIGHT) if (FlxG.keys.justPressed.EIGHT)
{ {
FlxG.switchState(new AnimationDebug(SONG.player2)); FlxG.switchState(new AnimationDebug(SONG.player2));
#if windows
if (luaModchart != null) if (luaModchart != null)
{ {
luaModchart.die(); luaModchart.die();
luaModchart = null; luaModchart = null;
} }
#end
} }
#end #end