correct MMM warnings

This commit is contained in:
Banjo Kazooie
2024-11-03 14:25:45 -06:00
parent e8be0b8651
commit 136ccd41d0
5 changed files with 10 additions and 8 deletions

View File

@@ -256,8 +256,8 @@ Actor *func_80388994(ActorMarker *marker, Gfx **gfx, Mtx **mtx, Vtx **vtx) {
this = actor_drawFullDepth(marker, gfx, mtx, vtx);
if (marker->unk14_21 && (this->lifetime_value != 0.0f)) {
func_8034A174((struct5Bs *) marker->unk44, 5, &sp84);
func_8034A174((struct5Bs *) marker->unk44, 6, &sp78);
func_8034A174(marker->unk44, 5, sp84);
func_8034A174(marker->unk44, 6, sp78);
for(i = 0; i < 8; i++){
sp6C[0] = sp6C[2] = 0.0f;
sp6C[1] = randf2(5.0f, 20.0f);

View File

@@ -2,7 +2,7 @@
#include "functions.h"
#include "variables.h"
Struct5Es * func_80309B48(f32[3], f32[3], f32[3], u32);
BKCollisionTri * func_80309B48(f32[3], f32[3], f32[3], u32);
/* .bss */
struct{

View File

@@ -4,6 +4,7 @@
/* extern functions */
extern void MMM_func_8038B6D4(f32* arg0, s32 arg1);
extern void *func_803517B8(s32);
/* internal definitions */
typedef struct {
@@ -178,7 +179,7 @@ void func_803898EC() {
void func_80389910() {
gcdialog_showText(ASSET_AD5_DIALOG_UNKNOWN, 0xE, NULL, NULL, MMM_func_80389810, NULL);
timedFunc_set_2(0.0f, func_8025A6EC, COMUSIC_2D_PUZZLE_SOLVED_FANFARE, 0x7FFF);
timedFunc_set_2(0.0f, (GenFunction_2)func_8025A6EC, COMUSIC_2D_PUZZLE_SOLVED_FANFARE, 0x7FFF);
timed_setStaticCameraToNode(2.0f, 0);
timedFunc_set_0(2.1f, MMM_func_803898A0);
timedFunc_set_0(6.0f, func_803898EC);
@@ -314,7 +315,7 @@ void code3420_handleOrganGame(s32 arg0, s32 arg1) {
f32 key_position[3];
bool is_black_key;
Me.unk8 = &D_8038BF20;
Me.unk8 = D_8038BF20;
func_80250170(0, 0x6A, 0);
Me.state = 0;

View File

@@ -10,7 +10,8 @@ typedef struct {
f32 unk4;
}Struct_MMM_3D50_0;
extern void func_8028F620(Struct_MMM_3D50_0 *, f32, f32);
extern bool func_8028F620(f32[3], f32, f32);
extern BKModel *mapModel_getModel(s32 arg0);
typedef struct {
u8 *unk0;

View File

@@ -49,7 +49,7 @@ void chTumblar_draw(Struct_MMM_47D0_0 *arg0, struct struct_68_s *arg1, f32 posit
}
}
void chTumblar_copyPosition(s32 arg0, s32 arg1, f32 arg2[3]) {
void chTumblar_copyPosition(s32 arg0, Struct68s *arg1, f32 arg2[3]) {
func_8035179C_copyPosition(arg1, arg2);
}
@@ -57,7 +57,7 @@ bool chTumblar_isDisappeared(Struct_MMM_47D0_0 *arg0, s32 arg1) {
return arg0->state == TUMBLAR_STATE_3_DISAPPEARED;
}
bool chTumblar_isBanjoAbove(s32 arg0, s32 arg1) {
bool chTumblar_isBanjoAbove(Struct_MMM_47D0_0 *arg0, Struct68s *arg1) {
f32 plyr_pos[3];
f32 position[3];