mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-29 03:34:07 +00:00
Fix non equivalence in Audio_SequenceChannelProcessScript. (#904)
This commit is contained in:
parent
7551dc2b71
commit
d1772c3340
1 changed files with 4 additions and 4 deletions
|
@ -1044,8 +1044,8 @@ void Audio_SequenceChannelProcessScript(SequenceChannel* channel) {
|
||||||
|
|
||||||
if (player->defaultBank != 0xFF) {
|
if (player->defaultBank != 0xFF) {
|
||||||
offset = ((u16*)gAudioContext.unk_283C)[player->seqId];
|
offset = ((u16*)gAudioContext.unk_283C)[player->seqId];
|
||||||
lowBits = gAudioContext.unk_283C[offset];
|
lowBits = gAudioContext.unk_283Cb[offset];
|
||||||
command = gAudioContext.unk_283C[offset + lowBits - result];
|
command = gAudioContext.unk_283Cb[offset + lowBits - result];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (func_800DF074(1, 2, command)) {
|
if (func_800DF074(1, 2, command)) {
|
||||||
|
@ -1155,8 +1155,8 @@ void Audio_SequenceChannelProcessScript(SequenceChannel* channel) {
|
||||||
|
|
||||||
if (player->defaultBank != 0xFF) {
|
if (player->defaultBank != 0xFF) {
|
||||||
offset = ((u16*)gAudioContext.unk_283C)[player->seqId];
|
offset = ((u16*)gAudioContext.unk_283C)[player->seqId];
|
||||||
lowBits = gAudioContext.unk_283C[offset];
|
lowBits = gAudioContext.unk_283Cb[offset];
|
||||||
command = gAudioContext.unk_283C[offset + lowBits - result];
|
command = gAudioContext.unk_283Cb[offset + lowBits - result];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (func_800DF074(1, 2, command)) {
|
if (func_800DF074(1, 2, command)) {
|
||||||
|
|
Loading…
Reference in a new issue