From 42a650d5dd5fd738cebcfe8105e87bdf9769115d Mon Sep 17 00:00:00 2001 From: Betopia <73242725+betpowo@users.noreply.github.com> Date: Sat, 22 Mar 2025 15:20:05 -0400 Subject: [PATCH] musicVolume is not speed.... wtf (#586) fixes funkin.game.cutscenes.DialogueCutscene if "musicVolume" was present in the current line, it would grab the value of "speed" instead of "musicVolume" and if "speed" wasn't present, it would crash the game lmao --- source/funkin/game/cutscenes/DialogueCutscene.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/game/cutscenes/DialogueCutscene.hx b/source/funkin/game/cutscenes/DialogueCutscene.hx index 99ba142b..b9a7c134 100644 --- a/source/funkin/game/cutscenes/DialogueCutscene.hx +++ b/source/funkin/game/cutscenes/DialogueCutscene.hx @@ -86,7 +86,7 @@ class DialogueCutscene extends Cutscene { callback: node.getAtt('callback'), changeDefAnim: node.getAtt('changeDefAnim'), speed: Std.parseFloat(node.getAtt("speed")).getDefault(0.05), - musicVolume: node.has.musicVolume ? (volume = Std.parseFloat(node.att.speed).getDefault(0.8)) : null, + musicVolume: node.has.musicVolume ? (volume = Std.parseFloat(node.att.musicVolume).getDefault(0.8)) : null, changeMusic: node.has.changeMusic ? FlxG.sound.load(Paths.music(node.att.changeMusic), volume, true) : null, playSound: node.has.playSound ? FlxG.sound.load(Paths.sound(node.att.playSound)) : null, nextSound: node.has.nextSound ? FlxG.sound.load(Paths.sound(node.att.nextSound)) : null,