Cleanup player struct

This commit is contained in:
LagoLunatic
2025-06-09 23:29:34 -04:00
parent 6404bc4765
commit e7d0df1e50
3 changed files with 16 additions and 14 deletions
+1 -1
View File
@@ -1224,7 +1224,7 @@ bool dAttLook_c::request(fopAc_ac_c* reqActor, f32 horizontalDist, f32 upDist, f
/* 800A009C-800A0270 .text requestF__10dAttLook_cFP10fopAc_ac_csi */
bool dAttLook_c::requestF(fopAc_ac_c* reqActor, s16 angle, int param_3) {
// TODO: what is param_3?
fopAc_ac_c* player = g_dComIfG_gameInfo.play.mpPlayer[0];
fopAc_ac_c* player = dComIfGp_getPlayer(0);
if (param_3 > field_0x4) {
return false;
}
+3 -3
View File
@@ -58,9 +58,9 @@ void dComIfG_play_c::ct()
/* 800521A4-800521D4 .text init__14dComIfG_play_cFv */
void dComIfG_play_c::init() {
for (int i = 0; i < ARRAY_SIZE(mpPlayer); i++) {
mpPlayer[i] = NULL;
mCurCamera[i] = -1;
for (int i = 0; i < ARRAY_SIZE(mPlayerInfo); i++) {
mPlayerInfo[i].mpPlayer = NULL;
mPlayerInfo[i].mCameraID = -1;
}
for (int i = 0; i < ARRAY_SIZE(mpPlayerPtr); i++) {