summaryrefslogtreecommitdiff
path: root/src/code/m_start_data_init.c
diff options
context:
space:
mode:
authorTom Overton <tom-overton@users.noreply.github.com>2024-05-06 15:26:01 -0700
committerGitHub <noreply@github.com>2024-05-06 15:26:01 -0700
commit8b5260063f75dbaa29636f34ec05774d692cf569 (patch)
tree12e9065cf7c180d5b70f352127b45fb67fe5ed42 /src/code/m_start_data_init.c
parent749152a745f19e6e1d0705cb7a48f34dd4d8df17 (diff)
`ac_structure` OK with some minor documentation (#183)
* Partial progress * `func_809E7F94_jp` OK * Do some more DMA functions * Fix build * Finally make `func_809E823C_jp` work properly * Finish DMA functions * Use ALIGN16 * Make the size for `mSc_secure_exchange_keep_bank` more obviously related to what follows * Fix build after merge * aSTR_setupActor_proc OK * aSTR_init_clip_area OK * Import data to C * Lots of cleanup * Use enum values in actors * StructureActor-ify the structures * Move `setupInfo_table` inside the function and name it * Name `aSTR_get_pal_segment` from context clues * Use all the names I can from DnM+ * Try (and fail) to import BSS into C * Match bss * Make bss sizes more "correct" * Use ARRAY_COUNT to define DMA length * A lot fewer hardcoded numbers * Lots of misc cleanup * A huge amount of names and cleanup * Get this PR-ready * Forgot some booleans * Name a lot of stuff after digging into the object files * Remove magic numbers for bss array size * Respond to review
Diffstat (limited to 'src/code/m_start_data_init.c')
-rw-r--r--src/code/m_start_data_init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/code/m_start_data_init.c b/src/code/m_start_data_init.c
index b936e89..9709b55 100644
--- a/src/code/m_start_data_init.c
+++ b/src/code/m_start_data_init.c
@@ -240,9 +240,9 @@ s32 mSDI_StartInitNew(Game* game2, s32 playerNumber, s32 mallocFlag) {
lbRTC_TimeCopy(&common_data.unk_0F8A4, &mTM_rtcTime_clear_code);
for (i = 0; i < PLAYER_NUM; i++) {
- common_data.homes[i].unk_022 &= (u16)~0xC0;
- common_data.homes[i].unk_022 &= 0xCF;
- common_data.homes[i].unk_022 &= 0xF7;
+ common_data.homes[i].unk_022.unk_22_0 = 0;
+ common_data.homes[i].unk_022.unk_22_2 = 0;
+ common_data.homes[i].unk_022.unk_22_4 = 0;
common_data.homes[i].unk_024 = i;
}