1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-11 03:39:59 +00:00

Fix non equivalence in Audio_SequenceChannelProcessScript. (#904)

This commit is contained in:
Revo 2021-08-16 13:03:59 -04:00 committed by GitHub
parent 7551dc2b71
commit d1772c3340
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)) {