91% match, just has a register scheduling issue
| 587 | |
| 588 | // 91% match, just has a register scheduling issue |
| 589 | static S32 smashCB(xGoal* rawgoal, void*, en_trantype* trantype, F32 dt, void*) |
| 590 | { |
| 591 | zNPCGoalBossSB1Smash* smash = (zNPCGoalBossSB1Smash*)rawgoal; |
| 592 | zNPCB_SB1* sb1 = (zNPCB_SB1*)rawgoal->GetOwner(); |
| 593 | |
| 594 | S32 nextgoal = 0; |
| 595 | |
| 596 | if (sSB1_armTgtHit) |
| 597 | { |
| 598 | nextgoal = NPC_GOAL_BOSSSB1DEFLATE; |
| 599 | *trantype = GOAL_TRAN_SET; |
| 600 | return nextgoal; |
| 601 | } |
| 602 | |
| 603 | if (SB1_CheckFeetStomp(sb1, &nextgoal, trantype)) |
| 604 | { |
| 605 | return nextgoal; |
| 606 | } |
| 607 | |
| 608 | if (smash->timeInGoal > 4.7666664f) |
| 609 | { |
| 610 | nextgoal = NPC_GOAL_BOSSSB1IDLE; |
| 611 | *trantype = GOAL_TRAN_SET; |
| 612 | } |
| 613 | |
| 614 | return nextgoal; |
| 615 | } |
| 616 | |
| 617 | static S32 deflateCB(xGoal* rawgoal, void*, en_trantype* trantype, F32 dt, void*) |
| 618 | { |
nothing calls this directly
no test coverage detected