mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-06-24 01:41:42 -04:00
Assorted, unrelated matches (#267)
* Assorted matches Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
This commit is contained in:
+7
-18
@@ -503,30 +503,19 @@ GLOBAL_ASM("asm/non_matchings/code_80281FA0/func_802830B4.s")
|
||||
#endif
|
||||
|
||||
#ifdef MIPS_TO_C
|
||||
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
|
||||
s32 func_80282364(void *, ?, s16, void *); // extern
|
||||
f32 coss(s32, void *); // extern
|
||||
|
||||
//generated by m2c commit 0927f17aac197848d4ebdf0c6bbad74b01f0851c
|
||||
void func_80283100(void *arg0, f32 *arg1) {
|
||||
f32 temp_f4;
|
||||
s32 temp_a0;
|
||||
void *temp_a3;
|
||||
void *phi_a3;
|
||||
|
||||
temp_a3 = arg0;
|
||||
phi_a3 = temp_a3;
|
||||
if (arg0->unk60 != 0) {
|
||||
temp_a0 = arg0->unk64 & 0xFFFF;
|
||||
arg0 = temp_a3;
|
||||
temp_f4 = (coss(temp_a0, temp_a3) * arg0->unk60) / 256.0f;
|
||||
arg0->unk64 = arg0->unk64 + arg0->unk68;
|
||||
arg0->unk6E = temp_f4;
|
||||
func_80282364(arg0 + 0x60, 0, arg0->unk6C, arg0);
|
||||
phi_a3 = arg0;
|
||||
temp_f4 = (coss((u32) arg0->unk64 & 0xFFFF) * (f32) arg0->unk60) / 256.0f;
|
||||
arg0->unk64 = (f32) (arg0->unk64 + arg0->unk68);
|
||||
arg0->unk6E = (s16) (s32) temp_f4;
|
||||
func_80282364(arg0 + 0x60, 0, arg0->unk6C);
|
||||
} else {
|
||||
temp_a3->unk64 = 0.0f;
|
||||
arg0->unk64 = 0.0f;
|
||||
}
|
||||
*arg1 = phi_a3->unk20 + phi_a3->unk6E;
|
||||
*arg1 = arg0->unk20 + (f32) arg0->unk6E;
|
||||
}
|
||||
#else
|
||||
GLOBAL_ASM("asm/non_matchings/code_80281FA0/func_80283100.s")
|
||||
|
||||
Reference in New Issue
Block a user