mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-11 17:30:25 +00:00
[ntsc-1.2] Match audio (#2122)
* general.c mostly ok * match remaining audio funcs * comments * Finish matching audio --------- Co-authored-by: engineer124 <engineer124engineer124@gmail.com>
This commit is contained in:
parent
3e200769f1
commit
e44c7c656c
8 changed files with 207 additions and 34 deletions
|
@ -341,8 +341,11 @@ void Audio_ChooseActiveSfx(u8 bankId) {
|
|||
"flag:%04X ptr:%08X pos:%f-%f-%f" VT_RST "\n",
|
||||
entry->sfxId, entry->posX, entry->posZ, *entry->posX, *entry->posY, *entry->posZ);
|
||||
}
|
||||
entry->priority = (u32)entry->dist + (SQ(0xFF - sfxImportance) * SQ(76));
|
||||
#if PLATFORM_GC
|
||||
temp3 = entry->sfxId; // fake
|
||||
entry->priority = (u32)entry->dist + (SQ(0xFF - sfxImportance) * SQ(76)) + temp3 - temp3;
|
||||
entry->priority = entry->priority + temp3 - temp3;
|
||||
#endif
|
||||
if (*entry->posZ < 0.0f) {
|
||||
entry->priority += (s32)(-*entry->posZ * 6.0f);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue