summaryrefslogtreecommitdiff
path: root/src/d/d_com_inf_game.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-12-03 18:09:56 -0500
committerGitHub <noreply@github.com>2025-12-03 15:09:56 -0800
commitf97d334732201e5a8e1250318925c90d0c715225 (patch)
treedffb749eaa0db03a031d854c319dc7e8f6d8e7b5 /src/d/d_com_inf_game.cpp
parent5716efc4c86f5e7e03263f0ed426c5e9ae834cd3 (diff)
Debug+retail matches and clean up some fakematches (#2910)
* Debug matches * Match daAlink_c::procGrassWhistleWait * Match JASAramStream::channelProc * More debug matches * Match JAUStreamStaticAramMgr_::deleteStreamAram and bitset inlines * Fix some fakematches * Fix gameinfo player info not being a struct * Update bug comments * Fix procids in alink * d_a_scene_exit OK
Diffstat (limited to 'src/d/d_com_inf_game.cpp')
-rw-r--r--src/d/d_com_inf_game.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/d/d_com_inf_game.cpp b/src/d/d_com_inf_game.cpp
index 623da54fcf..5bc923bbf3 100644
--- a/src/d/d_com_inf_game.cpp
+++ b/src/d/d_com_inf_game.cpp
@@ -38,13 +38,15 @@ static __d_timer_info_c dComIfG_mTimerInfo;
dComIfG_inf_c g_dComIfG_gameInfo;
void dComIfG_play_c::init() {
- for (int i = 0; i < 1; i++) {
- mPlayer[i] = NULL;
- mPlayerCameraID[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(mCameraInfo); i++) {
+ mCameraInfo[i].mCamera = NULL;
}
- mCameraInfo[0].mCamera = NULL;
- for (int i = 0; i < 2; i++) {
+ for (int i = 0; i < ARRAY_SIZE(mPlayerPtr); i++) {
mPlayerPtr[i] = NULL;
}