Skip to content

Commit

Permalink
and this
Browse files Browse the repository at this point in the history
  • Loading branch information
AbnormalPoof committed Oct 30, 2024
1 parent cc272b0 commit 2f89eb7
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions scripts/modules/charHandler.hxc
Original file line number Diff line number Diff line change
Expand Up @@ -806,17 +806,8 @@ class CharacterHandler extends Module {
var result:VoicesGroup = new VoicesGroup();
var songVoices:Array<String> = currentChart.buildVoiceList();

if (voiceList[0] != null) {
result.addPlayerVoice(FunkinSound.load(voiceList[0]));
} else {
result.addPlayerVoice(FunkinSound.load(songVoices[0]));
}

if (voiceList[1] != null) {
result.addOpponentVoice(FunkinSound.load(voiceList[1]));
} else {
result.addOpponentVoice(FunkinSound.load(songVoices[1]));
}
result.addPlayerVoice(FunkinSound.load(voiceList[0] ?? songVoices[0]));
result.addOpponentVoice(FunkinSound.load(voiceList[1] ?? songVoices[1]));

result.playerVoicesOffset = currentChart.offsets.getVocalOffset(currentChart.characters.player);
result.opponentVoicesOffset = currentChart.offsets.getVocalOffset(currentChart.characters.opponent);
Expand Down

0 comments on commit 2f89eb7

Please sign in to comment.