Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- org_num_1 = 2;
- org_num = 136; // gen_start with Cult of Sirius(136/34=4)
- v17 = 2;
- org_ = (funds *)((char *)save_funding + 876); // 468*2
- do
- {
- org_num_2 = 0;
- hostile_org_count = 0;
- do
- {
- if ( org_num_2 != org_num_1 && org_num_2 != 1 )
- {
- v3 = 0; // no_hostlile
- if ( *(&relation_formerly[(signed __int16)org_num_1].field_3 + org_num_2) <= relation_hostile_lim )// relation_hostile_lim == db 0CEh
- v3 = 1; // hostile
- if ( v3 )
- hostile_org_count += 2;
- }
- ++org_num_2;
- }
- while ( org_num_2 < 27 );
- buy_veh_fund = (org_veh_fund_init[v17] + hostile_org_count) * org_->start_funds / 100;
- org_->start_funds -= buy_veh_fund;
- polis_offset = 80 * (org_num_1 == 3); // for Megapol: 20*4 offset in array
- veh_count = 0;
- do
- {
- veh = *(int *)((char *)&gen_org_veh_list[(unsigned __int16)make_random(19)] + polis_offset);// note: &gen_org_veh_list[make_random(19) + polic_offset]
- v8 = org_num + 2 * veh;
- if ( *(unsigned __int16 *)((char *)veh_park + v8) < veh_lim[veh] )
- {
- price = veh_economic[veh].current_price;
- if ( buy_veh_fund >= price )
- {
- buy_veh_fund -= price;
- ++*(__int16 *)((char *)veh_park + v8);
- }
- }
- ++veh_count;
- }
- while ( veh_count < 50 );
- org_num_1 = v7 + 1;
- ++v17;
- org_->start_funds += buy_veh_fund;
- result = org_num + 68;
- org_ = (funds *)((char *)org_ + 438);
- org_num += 68;
- }
- while ( org_num_1 < 27 );
- org__ = 0;
- v12 = (init_funds_struct *)save_funding;
- v19 = 0;
- do
- {
- HIWORD(v12[1].funds) = 0;
- if ( org__ != 1 )
- {
- v13 = &veh_struct;
- veh_num = 0;
- do
- {
- if ( *v13 >> 16 != -1 && *(int *)((char *)v13 + 298) >> 16 == org__ )
- HIWORD(v12[1].funds) += word_12862A[63 * (*(int *)((char *)v13 + 2) >> 16)];
- ++veh_num;
- v13 = (int *)((char *)v13 + 630);
- }
- while ( (signed __int16)veh_num < 80 );
- result = 0;
- do
- {
- v15 = 2 * (signed __int16)result;
- v16 = 63 * (signed __int16)result++;
- HIWORD(v12[1].funds) += *(__int16 *)((char *)&veh_park[v19] + v15) * word_12862A[v16];
- }
- while ( (signed __int16)result < 34 );
- }
- ++org__;
- v12 = (init_funds_struct *)((char *)v12 + 438);
- v19 += 34;
- }
- while ( org__ < 27 );
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement