| 775 | } |
| 776 | |
| 777 | void CLPointControllerFlyTurtle::recursiveTargetCalcBack(CLPoint *point, int groupID, int *pPointNo, u8 *pCount, bool *pFoundTarget) { |
| 778 | (*pCount)++; |
| 779 | if(*pCount > 2) |
| 780 | return; |
| 781 | int prevPointNo = point->getPrevPointNumber(); |
| 782 | if(prevPointNo == 1) { |
| 783 | for(int i = 0; i < 1; i++) {} // fakematch, affects inline depth |
| 784 | if(point->getPrevPoint(0)->getNextPointNumber() < 2) |
| 785 | return; |
| 786 | } |
| 787 | |
| 788 | for(int i = 0; i < prevPointNo; i++) { |
| 789 | if(*pCount == 1) { |
| 790 | *pPointNo = i; |
| 791 | } |
| 792 | CLPoint *prevPoint = point->getPrevPoint(i); |
| 793 | u8 prevGroupID = prevPoint->getGroupID(); |
| 794 | if(prevGroupID == groupID) |
| 795 | *pFoundTarget = true; |
| 796 | else { |
| 797 | CLPoint *div = prevPoint->getDivPoint(); |
| 798 | if (div) { |
| 799 | recursiveTargetCalcBack(div, groupID, pPointNo, pCount, pFoundTarget); |
| 800 | (*pCount)--; |
| 801 | } |
| 802 | } |
| 803 | if(*pFoundTarget) |
| 804 | return; |
| 805 | } |
| 806 | } |
| 807 | |
| 808 | #include "JSystem/JAudio/JASFakeMatch2.h" |
nothing calls this directly
no test coverage detected