From f916adfe0a00564cef1a3b84354df67438f7797a Mon Sep 17 00:00:00 2001 From: Mikolka <51335952+mikolka9144@users.noreply.github.com> Date: Thu, 31 Oct 2024 21:37:04 +0100 Subject: [PATCH] fix crash handler --- source/MainMenuState.hx | 2 +- source/mikolka/vslice/CrashState.hx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/MainMenuState.hx b/source/MainMenuState.hx index d3d2f34a..c4c4b4e9 100644 --- a/source/MainMenuState.hx +++ b/source/MainMenuState.hx @@ -22,7 +22,7 @@ import options.OptionsState; class MainMenuState extends MusicBeatState { public static var psychEngineVersion:String = '0.6.3'; // This is also used for Discord RPC - public static var pSliceVersion:String = '2.0'; + public static var pSliceVersion:String = '2.0.1'; public static var funkinVersion:String = '0.5.1'; // Version of funkin' we are emulationg public static var curSelected:Int = 0; diff --git a/source/mikolka/vslice/CrashState.hx b/source/mikolka/vslice/CrashState.hx index 09d88c78..9b668fcf 100644 --- a/source/mikolka/vslice/CrashState.hx +++ b/source/mikolka/vslice/CrashState.hx @@ -39,6 +39,7 @@ class CrashState extends FlxState super.create(); var previousScreen = new FlxSprite(0, 0, screenBelow); previousScreen.setGraphicSize(FlxG.width,FlxG.height); + previousScreen.updateHitbox(); textBg = new FlxSprite(); FunkinTools.makeSolidColor(textBg, Math.floor(FlxG.width * 0.73), FlxG.height, 0x86000000); @@ -111,7 +112,8 @@ class CrashState extends FlxState if (Main.fpsVar != null) Main.fpsVar.visible = ClientPrefs.data.showFPS; if (Main.memoryCounter != null) Main.memoryCounter.visible = ClientPrefs.data.showFPS; #end - FlxG.sound.music = null; + FlxG.sound.pause(); + FlxTween.globalManager.clear(); FlxG.resetGame(); } }