Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 2
- unsigned int __thiscall getModifiedUnitTurnRadius(CUNIT *this)
- {
- unsigned int result; // eax
- signed int v2; // edx
- result = (unsigned __int8)Flingy_TurnRadius[unitsdat_Graphics[(unsigned __int16)this->type]];
- v2 = 0;
- if ( this->stimTime )
- v2 = 1;
- if ( this->statusFlags & USFlag_SpeedUpgrade )
- ++v2;
- if ( this->ensnareTime )
- --v2;
- if ( v2 <= 0 )
- {
- if ( v2 < 0 )
- result -= result >> 2;
- }
- else
- {
- result *= 2;
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement