test synced pole
Build libsm64 / Build libsm64 for linux (push) Successful in 33s
Build libsm64 / Build libsm64 for web (push) Successful in 33s
Build libsm64 / Build libsm64 for windows (push) Successful in 25s

This commit is contained in:
2026-06-01 14:54:23 -05:00
parent 40bee0f224
commit 42132a5646
7 changed files with 123 additions and 50 deletions
-16
View File
@@ -655,28 +655,12 @@ SM64_LIB_FN void sm64_fake_object_delete(int32_t objectId)
struct FakeObject *fake = s_fakeobj_instance_pool.objects[objectId];
struct MarioState *m = &g_state->mgMarioStateVal;
uint32_t action = m->action;
if (m->interactObj == &fake->object || m->usedObj == &fake->object || m->heldObj == &fake->object)
{
m->interactObj = NULL;
m->usedObj = NULL;
m->heldObj = NULL;
switch (action)
{
case ACT_HOLDING_POLE:
case ACT_CLIMBING_POLE:
case ACT_TOP_OF_POLE:
m->action = ACT_FREEFALL;
break;
default:
m->action = ACT_IDLE;
break;
}
m->actionState = 0;
}
if (m->marioBodyState != NULL && m->heldObj == NULL)
{