mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 03:55:11 +00:00
Add backwards compatibility for cur_obj_is_mario_ground_pounding_platform()
This commit is contained in:
parent
fa88a5aee0
commit
00e64fbf6c
2 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue