Advertisement
Pr0nogo

Untitled

Jul 3rd, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. // 2
  2. unsigned int __thiscall getModifiedUnitTurnRadius(CUNIT *this)
  3. {
  4. unsigned int result; // eax
  5. signed int v2; // edx
  6.  
  7. result = (unsigned __int8)Flingy_TurnRadius[unitsdat_Graphics[(unsigned __int16)this->type]];
  8. v2 = 0;
  9. if ( this->stimTime )
  10. v2 = 1;
  11. if ( this->statusFlags & USFlag_SpeedUpgrade )
  12. ++v2;
  13. if ( this->ensnareTime )
  14. --v2;
  15. if ( v2 <= 0 )
  16. {
  17. if ( v2 < 0 )
  18. result -= result >> 2;
  19. }
  20. else
  21. {
  22. result *= 2;
  23. }
  24. return result;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement