document gGlobalTimer and related functions

This commit is contained in:
mariob92
2024-09-02 12:35:38 +02:00
parent 98e97f4e95
commit ec98c1620c
53 changed files with 102 additions and 102 deletions

View File

@@ -91,7 +91,7 @@ void func_8038D568(Actor *this){
ActorLocal_fight_6E90 *local = (ActorLocal_fight_6E90 *)&this->local;
f32 sp48 = time_getDelta();
u32 sp44 = func_8023DB5C() & 0xF;
u32 sp44 = globalTimer_getTime() & 0xF;
Actor *other; //sp40
f32 sp3C;
f32 sp30[3];

View File

@@ -342,7 +342,7 @@ void func_803869BC(Actor *this) {
u32 temp_t3;
if (this->marker->unk14_21) {
sp3C = func_8023DB5C();
sp3C = globalTimer_getTime();
temp_t3 = (u32) this->state;
if ((temp_t3 == 6) || (temp_t3 == 7)) {
sp30[0] = D_803916CC[0];
@@ -852,7 +852,7 @@ void chfinalboss_phase1_setState(Actor *this, s32 next_state) {
f32 temp_f12;
local = (ActorLocal_fight_180 *)&this->local;
sp40 = func_8023DB5C();
sp40 = globalTimer_getTime();
sp3C = animctrl_getAnimTimer(this->animctrl);
local->phase = 1;
subaddie_set_state_with_direction(this, next_state, 0.0001f, 1);
@@ -936,7 +936,7 @@ void func_8038856C(Actor *actor, f32 *arg1) {
}
void func_803885DC(Actor *this) {
s32 sp24 = func_8023DB5C();
s32 sp24 = globalTimer_getTime();
if (func_8030E3FC(this->unk44_31) == 0) {
func_8030E2C4(this->unk44_31);
@@ -1148,7 +1148,7 @@ void chfinalboss_phase2_setState(Actor *this, s32 arg1){
s32 sp28;
local = (ActorLocal_fight_180 *)&this->local;
sp28 = func_8023DB5C();
sp28 = globalTimer_getTime();
local->phase = 2;
subaddie_set_state_with_direction(this, arg1, 0.0001f, 1);
actor_loopAnimation(this);

View File

@@ -108,7 +108,7 @@ void func_8038E2CC(ActorMarker *arg0) {
void chjinjonatorbase_update(Actor *this){
ActorLocal_fight_7BE0 *local = (ActorLocal_fight_7BE0 *)&this->local;
f32 sp58 = time_getDelta();
s32 temp_s1 = func_8023DB5C() & 0xf;
s32 temp_s1 = globalTimer_getTime() & 0xf;
s32 temp_s0;
int i;
Actor *other;

View File

@@ -323,7 +323,7 @@ void func_8038F620(Actor *this){
D_80391CEC, D_80391D34,
D_80391CF4, D_80391D1C, D_80391D2C
);
func_8023DB5C();
globalTimer_getTime();
break;
}//L8038F918
D_803928F8[0] = this->position[0];

View File

@@ -101,7 +101,7 @@ void func_8038FE94(Actor *this){
this->scale = (f64)this->scale + this->scale;
}//L8038FF18
this->roll += 20.0f;
if(func_8023DB5C()%4 == 1){
if(globalTimer_getTime()%4 == 1){
if(randf() < 0.5){
func_8038EBE0(this->position, 4, ASSET_718_SPRITE_SPARKLE_WHITE_2,
&D_80391F3C, &D_80391F54, &D_80391F6C,