static void start_of_year_update(void) { sustainability_test(); pollution_deaths_history -= pollution_deaths_history / 100.0; starve_deaths_history -= starve_deaths_history / 100.0; unemployed_history -= unemployed_history / 100.0; }
static void start_of_year_update (void) { int u; sustainability_test (); pollution_deaths_history -= pollution_deaths_history / 100.0; starve_deaths_history -= starve_deaths_history / 100.0; unemployed_history -= unemployed_history / 100.0; u = count_groups (GROUP_UNIVERSITY); if (u > 0) { university_intake_rate = (count_groups (GROUP_SCHOOL) * 20) / u; if (university_intake_rate > 100) university_intake_rate = 100; } else { university_intake_rate = 50; } map_power_grid(); }