Advertisement
Pr0nogo

Untitled

Jun 29th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. // 14
  2. void __usercall UpdateUnitSpeed(CUNIT *a1@<eax>)
  3. {
  4. CUNIT *v1; // eax
  5. char v2; // cl
  6. CUNIT *v3; // esi
  7.  
  8. v3 = a1;
  9. v1 = (CUNIT *)unitsdat_Graphics[(unsigned __int16)a1->type];
  10. v2 = Flingy_MoveControl[(_DWORD)v1];
  11. if ( v2 && v2 != 1 )
  12. {
  13. sub_42D8C0(v3);
  14. }
  15. else
  16. {
  17. v3->flingy_speed = GetModifiedUnitSpeed(Flingy_TopSpeed[(_DWORD)v1], v3);
  18. v3->flingy_acceleration = getModifiedUnitAcceleration(v3);
  19. v3->flingy_TurnRadius = getModifiedUnitTurnRadius(v3);
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement