document gGlobalTimer and related functions
This commit is contained in:
@@ -217,7 +217,7 @@ void bsbfly_update(void){
|
||||
if(button_pressed(BUTTON_A))
|
||||
D_8037D347 = 1;
|
||||
|
||||
if(D_8037D347 && func_8023DB5C()%3 == 0){
|
||||
if(D_8037D347 && globalTimer_getTime()%3 == 0){
|
||||
D_8037D347 = 0;
|
||||
func_80346C10(&sp2C, 0, BS_1_IDLE, ITEM_F_RED_FEATHER, 1);
|
||||
}
|
||||
|
@@ -49,7 +49,7 @@ void bsbshock_charge_update(void){
|
||||
f32 sp1C[3];
|
||||
|
||||
if(func_8028B2E8()){
|
||||
if(func_8023DB5C() % 2)
|
||||
if(globalTimer_getTime() % 2)
|
||||
func_8029C348();
|
||||
}
|
||||
else
|
||||
|
@@ -428,7 +428,7 @@ void func_802A8098(void) {
|
||||
}
|
||||
switch (D_8037D396) {
|
||||
case 0:
|
||||
if (func_8023DB4C(1) == 0) {
|
||||
if (globalTimer_getTimeMasked(1) == 0) {
|
||||
_player_getPosition(plyr_pos);
|
||||
plyr_pos[1] += 60.0f;
|
||||
p_ctrl = func_8029B950(plyr_pos, 25.0f);
|
||||
|
@@ -152,10 +152,10 @@ void func_802B5950(void) {
|
||||
|
||||
next_state = 0;
|
||||
anim_ctrl = baanim_getAnimCtrlPtr();
|
||||
if ((func_8023DB4C(7) == 0) && ((f64) randf() < 0.5)) {
|
||||
if ((globalTimer_getTimeMasked(7) == 0) && ((f64) randf() < 0.5)) {
|
||||
func_8029C304(1);
|
||||
}
|
||||
if ((func_8023DB4C(7) == 0) && ((f64) randf() < 0.5)) {
|
||||
if ((globalTimer_getTimeMasked(7) == 0) && ((f64) randf() < 0.5)) {
|
||||
func_802B5480();
|
||||
}
|
||||
if (animctrl_isAt(anim_ctrl, 0.01f) != 0) {
|
||||
|
@@ -568,7 +568,7 @@ void bswalrus_sled_update(void){
|
||||
f32 sp20[3];
|
||||
|
||||
if(50.0f < baphysics_get_horizontal_velocity()){
|
||||
if(func_8023DB4C(1)){
|
||||
if(globalTimer_getTimeMasked(1)){
|
||||
baModel_80292554(&sp20);
|
||||
}else{
|
||||
baModel_80292578(&sp20);
|
||||
|
Reference in New Issue
Block a user