Skip to content

Commit

Permalink
wtf happening with these functions
Browse files Browse the repository at this point in the history
  • Loading branch information
LarryFrosty committed Sep 15, 2024
1 parent 4d7fa85 commit 6e8f9bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/psychlua/FunkinLua.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1345,12 +1345,17 @@ class FunkinLua {
if(FlxG.sound.music != null) FlxG.sound.music.stop();
else
{
game.addTextToDebug('stopSound ran with tag "$tag"');
tag = LuaUtils.formatVariable('sound_$tag');
game.addTextToDebug("New tag "$tag"');
var variables = MusicBeatState.getVariables();
var snd:FlxSound = variables.get(tag);
game.addTextToDebug(snd);
game.addTextToDebug(snd == null);
if(snd != null)
{
snd.stop();
game.addTextToDebug(snd.playing);
variables.remove(tag);
}
}
Expand Down

0 comments on commit 6e8f9bf

Please sign in to comment.