equal
deleted
inserted
replaced
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 |