Make each Mario blink 1 cycle ahead of the last (unsynced blinking)
This commit is contained in:
parent
3567e5b62c
commit
c358e5eff2
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue