mirror of
https://github.com/n64decomp/mk64
synced 2026-06-18 06:35:20 -04:00
Identify some stuff in the Camera struct (#238)
Make a header file for all the camera stuff, refresh a lot of mips_to_c output Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
This commit is contained in:
+9
-19
@@ -963,32 +963,25 @@ void func_80022180(Mtx *arg0, Mat4 arg1) {
|
||||
arg0->m[3][3] = ((s32) (arg1[3][2] * someMultiplier) << 0x10) | ((s32) (arg1[3][3] * someMultiplier) & 0xFFFF);
|
||||
}
|
||||
|
||||
#ifdef MIPS_TO_C
|
||||
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
|
||||
? func_800224F0(s16 *arg0, s16 arg1, s16 arg2) {
|
||||
s32 func_800224F0(s16 *arg0, s16 arg1, s16 arg2) {
|
||||
s16 temp_v0;
|
||||
s16 temp_v0_2;
|
||||
s16 temp_v0_3;
|
||||
s16 phi_a2;
|
||||
|
||||
temp_v0 = arg1 - *arg0;
|
||||
phi_a2 = arg2;
|
||||
if (arg2 < 0) {
|
||||
phi_a2 = arg2 * -1;
|
||||
arg2 *= -1;
|
||||
}
|
||||
if (temp_v0 > 0) {
|
||||
temp_v0_2 = temp_v0 - phi_a2;
|
||||
if (temp_v0_2 >= 0) {
|
||||
*arg0 = arg1 - temp_v0_2;
|
||||
temp_v0 -= arg2;
|
||||
if (temp_v0 >= 0) {
|
||||
*arg0 = arg1 - temp_v0;
|
||||
} else {
|
||||
goto block_8;
|
||||
*arg0 = arg1;
|
||||
}
|
||||
} else {
|
||||
temp_v0_3 = temp_v0 + phi_a2;
|
||||
if (temp_v0_3 <= 0) {
|
||||
*arg0 = arg1 - temp_v0_3;
|
||||
temp_v0 += arg2;
|
||||
if (temp_v0 <= 0) {
|
||||
*arg0 = arg1 - temp_v0;
|
||||
} else {
|
||||
block_8:
|
||||
*arg0 = arg1;
|
||||
}
|
||||
}
|
||||
@@ -997,9 +990,6 @@ block_8:
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
#else
|
||||
GLOBAL_ASM("asm/non_matchings/code_8001F980/func_800224F0.s")
|
||||
#endif
|
||||
|
||||
void move_s32_towards(s32 *startingValue, s32 targetValue, f32 somePercent) {
|
||||
*startingValue -= ((*startingValue - targetValue) * somePercent);
|
||||
|
||||
Reference in New Issue
Block a user