Name active flags

This commit is contained in:
Arceveti committed 2021-09-22 17:09:31 -07:00
1 parent e7fb56dc50
commit a5588326c4
8 files changed
+74 -75

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
// bouncing_fireball.c.inc
void bhv_bouncing_fireball_flame_loop(void) {
o->activeFlags |= ACTIVE_FLAG_UNK10;
o->activeFlags |= ACTIVE_FLAG_IGNORE_ENV_BOXES;
cur_obj_update_floor_and_walls();
switch (o->oAction) {
case 0:
+2 -2
View File
@@ -19,7 +19,7 @@ void bhv_breakable_box_small_init(void) {
cur_obj_scale(0.4f);
obj_set_hitbox(o, &sBreakableBoxSmallHitbox);
o->oAnimState = 1;
o->activeFlags |= ACTIVE_FLAG_UNK9;
o->activeFlags |= ACTIVE_FLAG_DESTRUCTIVE_OBJ_DONT_DESTROY;
}
void small_breakable_box_spawn_dust(void) {
@@ -111,7 +111,7 @@ void breakable_box_small_get_thrown(void) {
o->oVelY = 20.0f;
o->oBreakableBoxSmallReleased = 1;
o->oBreakableBoxSmallFramesSinceReleased = 0;
o->activeFlags &= ~ACTIVE_FLAG_UNK9;
o->activeFlags &= ~ACTIVE_FLAG_DESTRUCTIVE_OBJ_DONT_DESTROY;
}
void bhv_breakable_box_small_loop(void) {
+1 -1
View File
@@ -13,7 +13,7 @@ struct ObjectHitbox sSpindriftHitbox = {
};
void bhv_spindrift_loop(void) {
o->activeFlags |= ACTIVE_FLAG_UNK10;
o->activeFlags |= ACTIVE_FLAG_IGNORE_ENV_BOXES;
if (cur_obj_set_hitbox_and_die_if_attacked(&sSpindriftHitbox, SOUND_OBJ_DYING_ENEMY1, 0))
cur_obj_change_action(1);
cur_obj_update_floor_and_walls();
+1 -1
View File
@@ -133,7 +133,7 @@ void (*sTuxiesMotherActions[])(void) = { tuxies_mother_act_0, tuxies_mother_act_
tuxies_mother_act_2 };
void bhv_tuxies_mother_loop(void) {
o->activeFlags |= ACTIVE_FLAG_UNK10;
o->activeFlags |= ACTIVE_FLAG_IGNORE_ENV_BOXES;
cur_obj_update_floor_and_walls();
cur_obj_call_action_function(sTuxiesMotherActions);
cur_obj_move_standard(-78);
+1 -1
View File
@@ -151,7 +151,7 @@ void check_destructive_object_collision(void) {
struct Object *nextObj = (struct Object *) destructiveObj->header.next;
while (nextObj != destructiveObj) {
if (nextObj->oDistanceToMario < 2000.0f && !(nextObj->activeFlags & ACTIVE_FLAG_UNK9)) {
if (nextObj->oDistanceToMario < 2000.0f && !(nextObj->activeFlags & ACTIVE_FLAG_DESTRUCTIVE_OBJ_DONT_DESTROY)) {
check_collision_in_list(nextObj, (struct Object *) nextObj->header.next, destructiveObj);
check_collision_in_list(nextObj, (struct Object *) gObjectLists[OBJ_LIST_GENACTOR].next,
(struct Object *) &gObjectLists[OBJ_LIST_GENACTOR]);
+1 -1
View File
@@ -1297,7 +1297,7 @@ static f32 cur_obj_move_y_and_get_water_level(f32 gravity, f32 buoyancy) {
}
o->oPosY += o->oVelY;
if (o->activeFlags & ACTIVE_FLAG_UNK10) {
if (o->activeFlags & ACTIVE_FLAG_IGNORE_ENV_BOXES) {
waterLevel = FLOOR_LOWER_LIMIT;
} else {
waterLevel = find_water_level(o->oPosX, o->oPosZ);
+1 -1
View File
@@ -237,7 +237,7 @@ struct Object *allocate_object(struct ObjectNode *objList) {
// Initialize object fields
obj->activeFlags = ACTIVE_FLAG_ACTIVE | ACTIVE_FLAG_UNK8;
obj->activeFlags = ACTIVE_FLAG_ACTIVE | ACTIVE_FLAG_ALLOCATED;
obj->parentObj = obj;
obj->prevObj = NULL;
obj->collidedObjInteractTypes = 0;