Add backwards compatibility for cur_obj_is_mario_ground_pounding_platform()

This commit is contained in:
MysterD 2023-05-16 00:37:30 -07:00
parent fa88a5aee0
commit 00e64fbf6c
2 changed files with 6 additions and 1 deletions

View file

@ -373,6 +373,11 @@ static void level_reset_globals(void) {
gEnvFxBuffer = NULL;
gEnvFxMode = ENVFX_MODE_NONE;
// clear area's level pool pointers
for (int i = 0; i < 8; i++) {
gAreas[i].unk04 = NULL;
}
// free models stored in dynos
dynos_model_clear_pool(MODEL_POOL_LEVEL);
}

View file

@ -2627,7 +2627,7 @@ s32 cur_obj_is_mario_ground_pounding_platform(void) {
if (!is_player_active(&gMarioStates[i])) { continue; }
if (!gMarioStates[i].marioObj) { continue; }
if (gMarioStates[i].marioObj->platform == o) {
if (determine_interaction(&gMarioStates[i], o) & INT_GROUND_POUND) {
if ((determine_interaction(&gMarioStates[i], o) & INT_GROUND_POUND) || (gMarioStates[i].action == ACT_GROUND_POUND_LAND)) {
return TRUE;
}
}