Make each Mario blink 1 cycle ahead of the last (unsynced blinking)

This commit is contained in:
Agent X 2024-03-17 21:20:42 -04:00
parent 3567e5b62c
commit c358e5eff2
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ Gfx* geo_switch_mario_eyes(s32 callContext, struct GraphNode* node, UNUSED Mat4*
if (callContext == GEO_CONTEXT_RENDER) { if (callContext == GEO_CONTEXT_RENDER) {
if (bodyState->eyeState == 0) { if (bodyState->eyeState == 0) {
blinkFrame = ((switchCase->numCases * 32 + gAreaUpdateCounter) >> 1) & 0x1F; blinkFrame = ((switchCase->numCases * 32 + (gAreaUpdateCounter + geo_get_processing_object_index() * 32)) >> 1) & 0x1F;
if (blinkFrame < 7) { if (blinkFrame < 7) {
switchCase->selectedCase = gMarioBlinkAnimation[blinkFrame]; switchCase->selectedCase = gMarioBlinkAnimation[blinkFrame];
} }