core2/code_75480.c progress
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
#include "variables.h"
|
||||
|
||||
/* .data */
|
||||
extern f32 D_80369890[];
|
||||
extern s32 D_803698B4;
|
||||
|
||||
/* .bss */
|
||||
struct8s *D_80381570[4];
|
||||
|
||||
@@ -61,4 +61,57 @@ void func_802FC630(s32 ag0, struct8s* arg1){
|
||||
D_803698B4 = 0;
|
||||
}
|
||||
|
||||
#pragma GLOBAL_ASM("asm/nonmatchings/core2/code_75480/func_802FC644.s")
|
||||
void func_802FC644(void) {
|
||||
f32 temp_f0;
|
||||
struct8s *temp_s2;
|
||||
s32 var_s1;
|
||||
|
||||
temp_s2 = D_80381570[0];
|
||||
if (D_803698B4) {
|
||||
switch (temp_s2->unk0) {
|
||||
default:
|
||||
break;
|
||||
|
||||
case 1:
|
||||
temp_f0 = D_80369890[temp_s2->unk18];
|
||||
temp_s2->unk1C += temp_s2->unk14 * temp_f0;
|
||||
if (temp_f0 == 0.0) {
|
||||
temp_s2->unk10 = 3.0f;
|
||||
temp_s2->unk0 = 2;
|
||||
} else {
|
||||
temp_s2->unk18++;
|
||||
}
|
||||
break;
|
||||
|
||||
case 2:
|
||||
if (getGameMode() != GAME_MODE_4_PAUSED) {
|
||||
temp_s2->unk10 -= time_getDelta();
|
||||
if (temp_s2->unk10 < 0.0f) {
|
||||
temp_s2->unk0 = 3;
|
||||
for(var_s1 = 1; var_s1 < D_803698B4; var_s1++){
|
||||
func_802FC5C8(4, D_80381570[var_s1]);
|
||||
func_802FB020(D_80381570[var_s1], temp_s2->unk0);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 3:
|
||||
if (temp_s2->unk1C < -20.0f) {
|
||||
func_802FB020(temp_s2, 0);
|
||||
break;
|
||||
} else {
|
||||
temp_s2->unk18 = MAX(0, temp_s2->unk18 - 1);
|
||||
temp_f0 = D_80369890[temp_s2->unk18];
|
||||
temp_s2->unk1C -= temp_s2->unk14 * temp_f0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
for(var_s1 = 1; var_s1 < D_803698B4; var_s1++){
|
||||
if (temp_s2->unk0 == 2) {
|
||||
D_80381570[var_s1]->unk0 = temp_s2->unk0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user