Code:
if(rec->GetNumNeedsCityGood() > 0) { sint32 s; bool found = false; //not needed? for(s = 0; s < rec->GetNumNeedsCityGood(); s++) { if(HasResource > 0) { rec->GetNeedsCityGood(s) == m_collectingResources->HaveGoodOfType() { //from CityData::CityRadiusFunc and SlicContext::HaveGoodOfType found = true; break; } } } if(!found) //not needed? return FALSE;
Comment