Minor Cleanup

Clarify comments, add missing inline
This commit is contained in:
SuperDude88
2024-02-25 00:39:33 -05:00
parent 5730214b49
commit 0e3d78e421
2 changed files with 8 additions and 4 deletions
+7 -3
View File
@@ -462,6 +462,12 @@ public:
u8 getMiniGameType() { return mMiniGameType; }
void endMiniGame(u16 param_1) {
mMiniGameType = 0;
field_0x4A38 ^= 1 << (param_1 - 1); // toggle Nth bit
field_0x4A3E = 0;
}
void show2dOn() { m2dShow = true; }
void show2dOff() { m2dShow = false; }
bool show2dCheck() { return m2dShow; }
@@ -2252,9 +2258,7 @@ inline u8 dComIfGp_getMiniGameType() {
}
inline void dComIfGp_endMiniGame(u16 param_1) {
g_dComIfG_gameInfo.play.mMiniGameType = 0;
g_dComIfG_gameInfo.play.field_0x4A38 ^= 1 << param_1 - 1; // what
g_dComIfG_gameInfo.play.field_0x4A3E = 0;
g_dComIfG_gameInfo.play.endMiniGame(param_1);
}
inline u8 dComIfGp_getAStatus() {
+1 -1
View File
@@ -330,7 +330,7 @@ BOOL daNpc_Ji1_c::isClearRecord(s16 param_1) {
}
u8 level = dComIfGs_getEventReg(0xD003);
return param_1 >= l_HIO.field_0x60[level] ? TRUE : FALSE; // has a clrlwi without the ternary + int literal defines
return param_1 >= l_HIO.field_0x60[level] ? TRUE : FALSE; // has a clrlwi without the ternary + TRUE/FALSE macros
}
/* 00000630-000006F8 .text setClearRecord__11daNpc_Ji1_cFs */