diff options
| author | Tyler McGavran <tyler.taggerung@gmail.com> | 2022-09-08 19:19:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-08 16:19:53 -0700 |
| commit | 2c57c81f3ae937e0cc8c038eca2fcea5259d9121 (patch) | |
| tree | c0b317e62cf08a290f7acbd0e078ca7a686cdb04 /src/code_80086E70.c | |
| parent | df9ad2d23ba8f08a3ec991340062998948782798 (diff) | |
Match the rest of actors.h (#254)
* Matched rest of actors and more
Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
Diffstat (limited to 'src/code_80086E70.c')
| -rw-r--r-- | src/code_80086E70.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/code_80086E70.c b/src/code_80086E70.c index 62187d527..10419b9e3 100644 --- a/src/code_80086E70.c +++ b/src/code_80086E70.c @@ -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 |
