clean up wPartners

This commit is contained in:
Alex Bates 2021-02-09 16:49:45 +00:00
parent 0075864560
commit 62e04bccc4
4 changed files with 5 additions and 5 deletions

View File

@ -61,7 +61,7 @@ ApiStatus func_802BDB84(ScriptInstance* script, s32 isInitialCall) {
// Something is up with D_8010EBB0 I think. It might be a struct or something
#ifdef NON_MATCHING
void world_goombario_pre_battle(s32 arg0) {
void world_goombario_pre_battle(Npc* partner) {
if (D_8010EBB0[0] != 0) {
func_80027088(0);
enable_player_input();
@ -74,7 +74,7 @@ void world_goombario_pre_battle(s32 arg0) {
D_8010EBB0[3] = 1;
}
#else
INCLUDE_ASM(void, "world/partner/goombario", world_goombario_pre_battle, s32 arg0);
INCLUDE_ASM(void, "world/partner/goombario", world_goombario_pre_battle, Npc* partner);
#endif
s32 D_802BDC40_317B60[] = {

View File

@ -7,7 +7,7 @@
void world_goombario_init(Npc* partner);
s32 world_goombario_can_pause(Npc* partner);
ApiStatus func_802BDB84(ScriptInstance* script, s32 isInitialCall);
void world_goombario_pre_battle(s32 arg0);
void world_goombario_pre_battle(Npc* partner);
Script world_goombario_take_out;
Script world_goombario_update;

View File

@ -64,7 +64,7 @@ f32 D_800F8030 = 0.0f;
s8 D_800F8034[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
s16 D_800F803A = 0;
WorldPartner wPartners[] = {
WorldPartner wPartners[12] = {
{}, // None
{
// Goombario

View File

@ -25,7 +25,7 @@ typedef struct WorldPartner {
/// Set to 0 when partner NPC loaded
extern s32 D_8010C954;
extern s32 D_8010CFD8;
WorldPartner wPartners[0x11]; // wPartners
WorldPartner wPartners[12]; // wPartners
extern WorldPartner* D_8010CFEC; // wPartner
extern NpcId D_8010CFD0; // wPartnerNpcIndex
extern Npc* D_8010C930; // wPartnerNpc