Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 1
- CUNIT *__usercall FindNextBounceTarget@<eax>(CBULLET *eax0@<eax>)
- {
- CUNIT *v2; // edx
- CUNIT *v3; // ecx
- CSPRITE *v4; // eax
- dwBox a1; // [esp+0h] [ebp-8h]
- if ( !eax0->sourceUnit )
- return 0;
- v2 = eax0->nextBounceUnit;
- bulletBounceMissileSource = eax0->sourceUnit;
- v3 = eax0->targetUnit;
- v4 = eax0->sprite;
- bulletBounceMissileTarget = v3;
- LOWORD(v3) = v4->position.y;
- LOWORD(v4) = v4->position.x;
- bulletBounceMissileNextTarget = v2;
- a1.x = (_WORD)v4 - 96;
- a1.w = (_WORD)v4 + 96;
- a1.y = (_WORD)v3 - 96;
- a1.h = (_WORD)v3 + 96;
- return (CUNIT *)IterateUnitsAtLocationTargetProc(&a1, (int (__fastcall *)(_DWORD, _DWORD))FindNextBounceTargetProc, 0);
- }
Add Comment
Please, Sign In to add comment