mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-09-09 20:31:30 -04:00
Match the rest of actors.h (#254)
* Matched rest of actors and more Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
This commit is contained in:
+8
-10
@@ -447,26 +447,24 @@ void func_80088150(s32 arg0) {
|
||||
}
|
||||
|
||||
#ifdef MIPS_TO_C
|
||||
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
|
||||
s32 atan2s(f32, f32); // extern
|
||||
//generated by m2c commit 8267401fa4ef7a38942dcca43353cc1bcc6efabc
|
||||
extern ? D_80165760;
|
||||
extern ? D_80165780;
|
||||
extern ? D_80165C18;
|
||||
|
||||
void func_80088178(s32 arg0, s32 arg1) {
|
||||
void func_80088178(s32 objectIndex, s32 arg1) {
|
||||
s16 temp_a1;
|
||||
struct_80165C18_entry *temp_v1;
|
||||
u16 temp_a0;
|
||||
void *temp_v1;
|
||||
|
||||
temp_v1 = (arg0 * 0xE0) + &D_80165C18;
|
||||
temp_a0 = temp_v1->unkC0;
|
||||
temp_a1 = atan2s(D_80165760.unk2 - D_80165760.unk0, D_80165780.unk2 - D_80165780.unk0) - temp_a0;
|
||||
temp_v1 = &D_80165C18[objectIndex];
|
||||
temp_a0 = temp_v1->unk_0C0;
|
||||
temp_a1 = atan2s((f32) (D_80165760.unk2 - D_80165760.unk0), (f32) (D_80165780.unk2 - D_80165780.unk0)) - temp_a0;
|
||||
if (temp_a1 > 0) {
|
||||
temp_v1->unkC0 = temp_a0 + (arg1 << 8);
|
||||
temp_v1->unk_0C0 = temp_a0 + (arg1 << 8);
|
||||
return;
|
||||
}
|
||||
if (temp_a1 < 0) {
|
||||
temp_v1->unkC0 = temp_a0 - (arg1 << 8);
|
||||
temp_v1->unk_0C0 = temp_a0 - (arg1 << 8);
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user