summaryrefslogtreecommitdiff
path: root/src/d
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-06-09 23:29:34 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2025-06-09 23:29:34 -0400
commite7d0df1e50a9f55ed7f0a89908ffabffe27b39b8 (patch)
tree493d8e347332ab2cd711d1ee1d205f3e4f9382c3 /src/d
parent6404bc476582be92151d131c19a159225d824d82 (diff)
Cleanup player struct
Diffstat (limited to 'src/d')
-rw-r--r--src/d/d_attention.cpp2
-rw-r--r--src/d/d_com_inf_game.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/d/d_attention.cpp b/src/d/d_attention.cpp
index 2ed67b12..1d6b4a9f 100644
--- a/src/d/d_attention.cpp
+++ b/src/d/d_attention.cpp
@@ -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;
}
diff --git a/src/d/d_com_inf_game.cpp b/src/d/d_com_inf_game.cpp
index 7d600e9a..f58a164a 100644
--- a/src/d/d_com_inf_game.cpp
+++ b/src/d/d_com_inf_game.cpp
@@ -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++) {