mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-07 23:10:22 +00:00
Match a few functions (#324)
* match a few functions * run formath.sh * minor fixes
This commit is contained in:
parent
d3b88e1b1c
commit
d8d789d2a5
25 changed files with 145 additions and 1528 deletions
|
@ -407,7 +407,7 @@ void func_80B4EF64(EnZl2* this, s16 arg1, s32 arg2) {
|
|||
}
|
||||
|
||||
#ifdef NON_MATCHING
|
||||
// Some missing ABS instructions near the bottom of the section on lines 454-461
|
||||
// single register swap in a subu instruction
|
||||
void func_80B4F230(EnZl2* this, s16 arg1, s32 arg2) {
|
||||
s32 temp_v1;
|
||||
s32 temp_t0;
|
||||
|
@ -444,13 +444,13 @@ void func_80B4F230(EnZl2* this, s16 arg1, s32 arg2) {
|
|||
phi_t5 = ABS(this->unk_1AC[index1AC]);
|
||||
} else if (arg2 == 16) {
|
||||
index1AC = 15;
|
||||
phi_t5 = ABS(this->unk_1AC[index1AC]);
|
||||
phi_t5 = -ABS(this->unk_1AC[index1AC]);
|
||||
} else {
|
||||
index1AC = 18;
|
||||
phi_t5 = ABS(this->unk_1AC[index1AC]);
|
||||
phi_t5 = -ABS(this->unk_1AC[index1AC]);
|
||||
}
|
||||
|
||||
if ((s32)fabsf((f32)temp_t3) >= 0x8001) {
|
||||
if ((s32)fabsf((f32)temp_t3) > 0x8000) {
|
||||
if (arg1 > 0) {
|
||||
temp_t3 -= 0x10000;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue