Loading

Paste #przn2n2l2

  1.     if (!_networking && _local_company == COMPANY_SPECTATOR && include_spectator && widget == WID_TN_COMPANIES) {
  2.         bool human_company = false;
  3.         for (CompanyID c = COMPANY_FIRST; c < MAX_COMPANIES; c++) {
  4.             if (Company::IsValidHumanID(c)) {
  5.                 human_company = true;
  6.                 break;
  7.             }
  8.         }
  9.         *list->Append() = new DropDownListStringItem(STR_NETWORK_COMPANY_LIST_NEW_COMPANY, CTMN_NEW_COMPANY, Company::GetNumItems() >= MAX_COMPANIES && !human_company);
  10.     }

Comments