Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- signed int __cdecl CCarCtrl::ChooseCarModelToLoad(int group)
- {
- signed int v1; // ebp@1
- signed int result; // eax@2
- v1 = 0;
- while ( 1 )
- {
- result = CPopulation::m_CarGroups.POPCYCLE_GROUP_WORKERS[23 * group
- + (unsigned __int64)((long double)CPopulation::m_nNumCarsInGroup[group]
- * (long double)(unsigned __int16)rand()
- * 0.000030517578)];
- if ( *(&CStreaming::ms_aInfoForModel.uiLoadFlag + 20 * result) != 1 )
- break;
- ++v1;
- if ( v1 >= 16 )
- return -1;
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement