src/economy_new.cpp
branchgamebalance
changeset 9889 cfd2278f9099
parent 9888 7cf72895ca8c
child 9901 a922f277ebfd
equal deleted inserted replaced
9888:7cf72895ca8c 9889:cfd2278f9099
    20 	FixedT<int64, 16> total_activity = 0;
    20 	FixedT<int64, 16> total_activity = 0;
    21 	FixedT<int64, 16> old_activity = m_activity_level;
    21 	FixedT<int64, 16> old_activity = m_activity_level;
    22 
    22 
    23 	FOR_ALL_TOWNS(t) {
    23 	FOR_ALL_TOWNS(t) {
    24 		total_activity += (t->GetActivity() * t->population * m_activity_level);
    24 		total_activity += (t->GetActivity() * t->population * m_activity_level);
    25 		DEBUG(eco, 6, "Obtained EAL of %f, total %f", (double)t->GetActivity());
    25 		DEBUG(eco, 6, "Obtained EAL of %f", (double)t->GetActivity());
    26 	}
    26 	}
    27 
    27 
    28 	DEBUG(eco, 5, "Global EAL is             %f", (double)m_activity_level * GetWorldPopulation());
    28 	DEBUG(eco, 5, "Global EAL is             %f", (double)m_activity_level * GetWorldPopulation());
    29 	DEBUG(eco, 5, "Total EAL of all towns is %f", (double)total_activity);
    29 	DEBUG(eco, 5, "Total EAL of all towns is %f", (double)total_activity);
    30 
    30