1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-03 22:44:30 +00:00

Cleanup extracted colliders 2: ARRAY_COUNT (#2643)

This commit is contained in:
Dragorn421 2025-06-25 13:20:55 +01:00 committed by GitHub
parent 6234d7f2aa
commit b7935dad12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
69 changed files with 123 additions and 74 deletions

View file

@ -6,6 +6,7 @@
#include "z_bg_bdan_switch.h" #include "z_bg_bdan_switch.h"
#include "array_count.h"
#include "ichain.h" #include "ichain.h"
#include "one_point_cutscene.h" #include "one_point_cutscene.h"
#include "printf.h" #include "printf.h"
@ -89,7 +90,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -6,6 +6,7 @@
#include "z_bg_bombwall.h" #include "z_bg_bombwall.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "ichain.h" #include "ichain.h"
#include "printf.h" #include "printf.h"
#include "sfx.h" #include "sfx.h"
@ -73,7 +74,7 @@ static ColliderTrisInit sTrisInit = {
OC2_NONE, OC2_NONE,
COLSHAPE_TRIS, COLSHAPE_TRIS,
}, },
3, ARRAY_COUNT(sTrisElementsInit),
sTrisElementsInit, sTrisElementsInit,
}; };

View file

@ -6,6 +6,7 @@
#include "z_bg_haka_sgami.h" #include "z_bg_haka_sgami.h"
#include "array_count.h"
#include "ichain.h" #include "ichain.h"
#include "sfx.h" #include "sfx.h"
#include "z_lib.h" #include "z_lib.h"
@ -102,7 +103,7 @@ static ColliderTrisInit sTrisInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_TRIS, COLSHAPE_TRIS,
}, },
4, ARRAY_COUNT(sTrisElementsInit),
sTrisElementsInit, sTrisElementsInit,
}; };

View file

@ -6,6 +6,7 @@
#include "z_bg_haka_trap.h" #include "z_bg_haka_trap.h"
#include "array_count.h"
#include "ichain.h" #include "ichain.h"
#include "rand.h" #include "rand.h"
#include "sfx.h" #include "sfx.h"
@ -106,7 +107,7 @@ static ColliderTrisInit sTrisInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_TRIS, COLSHAPE_TRIS,
}, },
2, ARRAY_COUNT(sTrisElementsInit),
sTrisElementsInit, sTrisElementsInit,
}; };

View file

@ -7,6 +7,7 @@
#include "z_bg_hidan_dalm.h" #include "z_bg_hidan_dalm.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "ichain.h" #include "ichain.h"
#include "sfx.h" #include "sfx.h"
#include "sys_matrix.h" #include "sys_matrix.h"
@ -95,7 +96,7 @@ static ColliderTrisInit sTrisInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_TRIS, COLSHAPE_TRIS,
}, },
4, ARRAY_COUNT(sTrisElementInit),
sTrisElementInit, sTrisElementInit,
}; };

View file

@ -75,7 +75,7 @@ static ColliderTrisInit sTrisInit = {
OC2_NONE, OC2_NONE,
COLSHAPE_TRIS, COLSHAPE_TRIS,
}, },
2, ARRAY_COUNT(sTrisElementsInit),
sTrisElementsInit, sTrisElementsInit,
}; };

View file

@ -6,6 +6,7 @@
#include "z_bg_hidan_hrock.h" #include "z_bg_hidan_hrock.h"
#include "array_count.h"
#include "ichain.h" #include "ichain.h"
#include "rumble.h" #include "rumble.h"
#include "sfx.h" #include "sfx.h"
@ -71,7 +72,7 @@ static ColliderTrisInit sTrisInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_TRIS, COLSHAPE_TRIS,
}, },
2, ARRAY_COUNT(sTrisElementsInit),
sTrisElementsInit, sTrisElementsInit,
}; };

View file

@ -8,6 +8,7 @@
#include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h" #include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -76,7 +77,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_NONE, OC2_NONE,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -115,7 +115,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
6, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -119,7 +119,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
6, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -2,6 +2,7 @@
#include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h" #include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -63,7 +64,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -8,6 +8,7 @@
#include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h" #include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "ichain.h" #include "ichain.h"
#include "printf.h" #include "printf.h"
#include "sfx.h" #include "sfx.h"
@ -60,7 +61,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_NONE, OC2_NONE,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -7,6 +7,7 @@
#include "z_bg_jya_goroiwa.h" #include "z_bg_jya_goroiwa.h"
#include "array_count.h"
#include "ichain.h" #include "ichain.h"
#include "sfx.h" #include "sfx.h"
#include "z_lib.h" #include "z_lib.h"
@ -65,7 +66,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -66,7 +66,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_NONE, OC2_NONE,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -69,7 +69,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_NONE, OC2_NONE,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -6,6 +6,7 @@
#include "z_bg_menkuri_eye.h" #include "z_bg_menkuri_eye.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -60,7 +61,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -78,7 +78,7 @@ static ColliderTrisInit sTrisInitFloor = {
OC2_NONE, OC2_NONE,
COLSHAPE_TRIS, COLSHAPE_TRIS,
}, },
2, ARRAY_COUNT(sTrisElementsInitFloor),
sTrisElementsInitFloor, sTrisElementsInitFloor,
}; };
@ -105,7 +105,7 @@ static ColliderTrisInit sTrisInitRutoWall = {
OC2_NONE, OC2_NONE,
COLSHAPE_TRIS, COLSHAPE_TRIS,
}, },
1, ARRAY_COUNT(sTrisElementsInitRutoWall),
sTrisElementsInitRutoWall, sTrisElementsInitRutoWall,
}; };
@ -143,7 +143,7 @@ static ColliderTrisInit sTrisInitUnusedWall = {
OC2_NONE, OC2_NONE,
COLSHAPE_TRIS, COLSHAPE_TRIS,
}, },
2, ARRAY_COUNT(sTrisElementsInitWall),
sTrisElementsInitWall, sTrisElementsInitWall,
}; };
@ -156,7 +156,7 @@ static ColliderTrisInit sTrisInitStingerWall = {
OC2_NONE, OC2_NONE,
COLSHAPE_TRIS, COLSHAPE_TRIS,
}, },
2, ARRAY_COUNT(sTrisElementsInitWall),
sTrisElementsInitWall, sTrisElementsInitWall,
}; };

View file

@ -70,7 +70,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_NONE, OC2_NONE,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -7,6 +7,7 @@
#include "z_bg_po_event.h" #include "z_bg_po_event.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -89,7 +90,7 @@ static ColliderTrisInit sTrisInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_TRIS, COLSHAPE_TRIS,
}, },
2, ARRAY_COUNT(sTrisElementsInit),
sTrisElementsInit, sTrisElementsInit,
}; };

View file

@ -6,6 +6,7 @@
#include "z_bg_spot06_objects.h" #include "z_bg_spot06_objects.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -93,7 +94,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -85,7 +85,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
3, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -75,7 +75,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -83,7 +83,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
2, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -6,6 +6,7 @@
#include "z_bg_ydan_maruta.h" #include "z_bg_ydan_maruta.h"
#include "array_count.h"
#include "ichain.h" #include "ichain.h"
#include "one_point_cutscene.h" #include "one_point_cutscene.h"
#include "sfx.h" #include "sfx.h"
@ -73,7 +74,7 @@ static ColliderTrisInit sTrisInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_TRIS, COLSHAPE_TRIS,
}, },
2, ARRAY_COUNT(sTrisElementsInit),
sTrisElementsInit, sTrisElementsInit,
}; };

View file

@ -7,6 +7,7 @@
#include "z_bg_ydan_sp.h" #include "z_bg_ydan_sp.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -85,7 +86,7 @@ static ColliderTrisInit sTrisInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_TRIS, COLSHAPE_TRIS,
}, },
2, ARRAY_COUNT(sTrisElementsInit),
sTrisElementsInit, sTrisElementsInit,
}; };

View file

@ -1,3 +1,4 @@
#include "array_count.h"
#include "collision_check.h" #include "collision_check.h"
static u8 D_808C7000[] = { static u8 D_808C7000[] = {
@ -231,7 +232,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
19, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -221,6 +221,6 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
19, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -111,6 +111,6 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
9, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -247,7 +247,7 @@ static ColliderJntSphInit sColliderJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
13, ARRAY_COUNT(sColliderJntSphElementsInit),
sColliderJntSphElementsInit, sColliderJntSphElementsInit,
}; };

View file

@ -221,7 +221,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
19, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -1,3 +1,4 @@
#include "array_count.h"
#include "collision_check.h" #include "collision_check.h"
static ColliderJntSphElementInit sJntSphElementsInitHand[] = { static ColliderJntSphElementInit sJntSphElementsInitHand[] = {
@ -133,7 +134,7 @@ static ColliderJntSphInit sJntSphInitHand = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
11, ARRAY_COUNT(sJntSphElementsInitHand),
sJntSphElementsInitHand, sJntSphElementsInitHand,
}; };
@ -270,7 +271,7 @@ static ColliderJntSphInit sJntSphInitHead = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
11, ARRAY_COUNT(sJntSphElementsInitHead),
sJntSphElementsInitHead, sJntSphElementsInitHead,
}; };

View file

@ -6,6 +6,7 @@
#include "z_door_killer.h" #include "z_door_killer.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "printf.h" #include "printf.h"
@ -96,7 +97,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_NONE, OC2_NONE,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -6,6 +6,7 @@
#include "z_en_ba.h" #include "z_en_ba.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -85,7 +86,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_NONE, OC2_NONE,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
2, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -7,6 +7,7 @@
#include "z_en_bb.h" #include "z_en_bb.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "attributes.h" #include "attributes.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
@ -248,7 +249,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -7,6 +7,7 @@
#include "z_en_bom.h" #include "z_en_bom.h"
#include "overlays/effects/ovl_Effect_Ss_Dead_Sound/z_eff_ss_dead_sound.h" #include "overlays/effects/ovl_Effect_Ss_Dead_Sound/z_eff_ss_dead_sound.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -85,7 +86,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_NONE, OC2_NONE,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -7,6 +7,7 @@
#include "z_en_bombf.h" #include "z_en_bombf.h"
#include "overlays/effects/ovl_Effect_Ss_Dead_Sound/z_eff_ss_dead_sound.h" #include "overlays/effects/ovl_Effect_Ss_Dead_Sound/z_eff_ss_dead_sound.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "regs.h" #include "regs.h"
@ -89,7 +90,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_NONE, OC2_NONE,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -1,6 +1,7 @@
#include "z_en_bubble.h" #include "z_en_bubble.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "sfx.h" #include "sfx.h"
@ -70,7 +71,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
2, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -8,6 +8,7 @@
#include "overlays/actors/ovl_En_Elf/z_en_elf.h" #include "overlays/actors/ovl_En_Elf/z_en_elf.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -62,7 +63,7 @@ static ColliderJntSphInit sColliderJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -1,5 +1,6 @@
#include "z_en_crow.h" #include "z_en_crow.h"
#include "array_count.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
#include "rand.h" #include "rand.h"
@ -66,7 +67,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -144,7 +144,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
7, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -7,6 +7,7 @@
#include "z_en_dh.h" #include "z_en_dh.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "attributes.h" #include "attributes.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
@ -113,7 +114,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -8,6 +8,7 @@
#include "overlays/actors/ovl_En_Dh/z_en_dh.h" #include "overlays/actors/ovl_En_Dh/z_en_dh.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -151,7 +152,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
5, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -3,6 +3,7 @@
#include "overlays/actors/ovl_En_Bombf/z_en_bombf.h" #include "overlays/actors/ovl_En_Bombf/z_en_bombf.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -141,7 +142,7 @@ static ColliderJntSphInit sBodyJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
6, ARRAY_COUNT(sBodyElementsInit),
sBodyElementsInit, sBodyElementsInit,
}; };
@ -190,7 +191,7 @@ static ColliderTrisInit sHardTrisInit = {
OC2_NONE, OC2_NONE,
COLSHAPE_TRIS, COLSHAPE_TRIS,
}, },
3, ARRAY_COUNT(sHardElementsInit),
sHardElementsInit, sHardElementsInit,
}; };

View file

@ -8,6 +8,7 @@
#include "libc64/math64.h" #include "libc64/math64.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "segmented_address.h" #include "segmented_address.h"
@ -206,7 +207,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
12, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -8,6 +8,7 @@
#include "overlays/actors/ovl_Obj_Syokudai/z_obj_syokudai.h" #include "overlays/actors/ovl_Obj_Syokudai/z_obj_syokudai.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -85,7 +86,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -7,6 +7,7 @@
#include "z_en_fish.h" #include "z_en_fish.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -73,7 +74,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -9,6 +9,7 @@
#include "libc64/math64.h" #include "libc64/math64.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "segmented_address.h" #include "segmented_address.h"
@ -74,7 +75,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -7,6 +7,7 @@
#include "z_en_geldb.h" #include "z_en_geldb.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -153,7 +154,7 @@ static ColliderTrisInit sBlockTrisInit = {
OC2_NONE, OC2_NONE,
COLSHAPE_TRIS, COLSHAPE_TRIS,
}, },
2, ARRAY_COUNT(sBlockTrisElementsInit),
sBlockTrisElementsInit, sBlockTrisElementsInit,
}; };

View file

@ -8,6 +8,7 @@
#include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h" #include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "ichain.h" #include "ichain.h"
#include "printf.h" #include "printf.h"
#include "quake.h" #include "quake.h"
@ -93,7 +94,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -7,6 +7,7 @@
#include "z_en_honotrap.h" #include "z_en_honotrap.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -110,7 +111,7 @@ static ColliderTrisInit sTrisInit = {
OC2_NONE, OC2_NONE,
COLSHAPE_TRIS, COLSHAPE_TRIS,
}, },
2, ARRAY_COUNT(sTrisElementsInit),
sTrisElementsInit, sTrisElementsInit,
}; };

View file

@ -166,7 +166,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1 | OC2_UNK1, OC2_TYPE_1 | OC2_UNK1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -7,6 +7,7 @@
#include "z_en_horse_ganon.h" #include "z_en_horse_ganon.h"
#include "libc64/math64.h" #include "libc64/math64.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -97,7 +98,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1 | OC2_UNK1, OC2_TYPE_1 | OC2_UNK1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -96,7 +96,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1 | OC2_UNK1, OC2_TYPE_1 | OC2_UNK1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -88,7 +88,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1 | OC2_UNK1, OC2_TYPE_1 | OC2_UNK1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -141,7 +141,7 @@ static ColliderTrisInit sTrisInit = {
OC2_NONE, OC2_NONE,
COLSHAPE_TRIS, COLSHAPE_TRIS,
}, },
2, ARRAY_COUNT(sTrisElementsInit),
sTrisElementsInit, sTrisElementsInit,
}; };

View file

@ -8,6 +8,7 @@
#include "overlays/actors/ovl_Obj_Makekinsuta/z_obj_makekinsuta.h" #include "overlays/actors/ovl_Obj_Makekinsuta/z_obj_makekinsuta.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -93,7 +94,7 @@ static ColliderJntSphInit sColliderJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sColliderElementsInit),
sColliderElementsInit, sColliderElementsInit,
}; };

View file

@ -7,6 +7,7 @@
#include "z_en_mb.h" #include "z_en_mb.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -160,7 +161,7 @@ static ColliderTrisInit sFrontShieldingTrisInit = {
OC2_NONE, OC2_NONE,
COLSHAPE_TRIS, COLSHAPE_TRIS,
}, },
2, ARRAY_COUNT(sFrontShieldingTrisElementsInit),
sFrontShieldingTrisElementsInit, sFrontShieldingTrisElementsInit,
}; };

View file

@ -1,6 +1,7 @@
#include "z_en_ny.h" #include "z_en_ny.h"
#include "libc64/math64.h" #include "libc64/math64.h"
#include "array_count.h"
#include "attributes.h" #include "attributes.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
@ -74,7 +75,7 @@ static ColliderJntSphInit sColliderJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -3,6 +3,7 @@
#include "overlays/effects/ovl_Effect_Ss_Hahen/z_eff_ss_hahen.h" #include "overlays/effects/ovl_Effect_Ss_Hahen/z_eff_ss_hahen.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -113,7 +114,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -7,6 +7,7 @@
#include "z_en_poh.h" #include "z_en_poh.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -113,7 +114,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -8,6 +8,7 @@
#include "overlays/actors/ovl_En_Encount1/z_en_encount1.h" #include "overlays/actors/ovl_En_Encount1/z_en_encount1.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -89,7 +90,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
2, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -121,7 +121,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -2,6 +2,7 @@
#include "libc64/math64.h" #include "libc64/math64.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "attributes.h" #include "attributes.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
@ -71,7 +72,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -9,6 +9,7 @@
#include "overlays/effects/ovl_Effect_Ss_Dead_Sound/z_eff_ss_dead_sound.h" #include "overlays/effects/ovl_Effect_Ss_Dead_Sound/z_eff_ss_dead_sound.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -125,7 +126,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -7,6 +7,7 @@
#include "z_en_tp.h" #include "z_en_tp.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -91,7 +92,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -9,6 +9,7 @@
#include "overlays/actors/ovl_En_Kanban/z_en_kanban.h" #include "overlays/actors/ovl_En_Kanban/z_en_kanban.h"
#include "assets/objects/object_fish/object_fish.h" #include "assets/objects/object_fish/object_fish.h"
#include "libc64/math64.h" #include "libc64/math64.h"
#include "array_count.h"
#include "attributes.h" #include "attributes.h"
#include "controller.h" #include "controller.h"
#include "gfx.h" #include "gfx.h"
@ -368,7 +369,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_1, OC2_TYPE_1,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
12, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -7,6 +7,7 @@
#include "z_mir_ray.h" #include "z_mir_ray.h"
#include "libu64/debug.h" #include "libu64/debug.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -102,7 +103,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_NONE, OC2_NONE,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -8,6 +8,7 @@
#include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h" #include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -66,7 +67,7 @@ static ColliderJntSphInit sJntSphInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sJntSphElementsInit),
sJntSphElementsInit, sJntSphElementsInit,
}; };

View file

@ -8,6 +8,7 @@
#include "overlays/actors/ovl_Obj_Oshihiki/z_obj_oshihiki.h" #include "overlays/actors/ovl_Obj_Oshihiki/z_obj_oshihiki.h"
#include "libc64/qrand.h" #include "libc64/qrand.h"
#include "array_count.h"
#include "gfx.h" #include "gfx.h"
#include "gfx_setupdl.h" #include "gfx_setupdl.h"
#include "ichain.h" #include "ichain.h"
@ -84,7 +85,7 @@ static ColliderJntSphInit sColliderJntSphInit = {
OC2_TYPE_2, OC2_TYPE_2,
COLSHAPE_JNTSPH, COLSHAPE_JNTSPH,
}, },
1, ARRAY_COUNT(sColliderJntSphElementsInit),
sColliderJntSphElementsInit, sColliderJntSphElementsInit,
}; };