Skip to content

Commit 42a650d

Browse files
authored
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
1 parent d27a79e commit 42a650d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/funkin/game/cutscenes/DialogueCutscene.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class DialogueCutscene extends Cutscene {
8686
callback: node.getAtt('callback'),
8787
changeDefAnim: node.getAtt('changeDefAnim'),
8888
speed: Std.parseFloat(node.getAtt("speed")).getDefault(0.05),
89-
musicVolume: node.has.musicVolume ? (volume = Std.parseFloat(node.att.speed).getDefault(0.8)) : null,
89+
musicVolume: node.has.musicVolume ? (volume = Std.parseFloat(node.att.musicVolume).getDefault(0.8)) : null,
9090
changeMusic: node.has.changeMusic ? FlxG.sound.load(Paths.music(node.att.changeMusic), volume, true) : null,
9191
playSound: node.has.playSound ? FlxG.sound.load(Paths.sound(node.att.playSound)) : null,
9292
nextSound: node.has.nextSound ? FlxG.sound.load(Paths.sound(node.att.nextSound)) : null,

0 commit comments

Comments
 (0)