Add backwards compatibility for cur_obj_is_mario_ground_pounding_platform()
This commit is contained in:
parent
3a93423fcc
commit
6386f1f9c2
|
@ -373,6 +373,11 @@ static void level_reset_globals(void) {
|
||||||
gEnvFxBuffer = NULL;
|
gEnvFxBuffer = NULL;
|
||||||
gEnvFxMode = ENVFX_MODE_NONE;
|
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
|
// free models stored in dynos
|
||||||
dynos_model_clear_pool(MODEL_POOL_LEVEL);
|
dynos_model_clear_pool(MODEL_POOL_LEVEL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2627,7 +2627,7 @@ s32 cur_obj_is_mario_ground_pounding_platform(void) {
|
||||||
if (!is_player_active(&gMarioStates[i])) { continue; }
|
if (!is_player_active(&gMarioStates[i])) { continue; }
|
||||||
if (!gMarioStates[i].marioObj) { continue; }
|
if (!gMarioStates[i].marioObj) { continue; }
|
||||||
if (gMarioStates[i].marioObj->platform == o) {
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue