int mass = t->cache.num_houses / 8; /* Actually we are proportional to sqrt() but that's right because we are covering an area. * The offsets are to make sure the radii do not decrease in size when going from the table * to the calculated value.*/ t->cache.squared_town_zone_radius[0] = mass * 15 - 40; t->cache.squared_town_zone_radius[1] = mass * 9 - 15; t->cache.squared_town_zone_radius[2] = 0; t->cache.squared_town_zone_radius[3] = mass * 5 - 5; t->cache.squared_town_zone_radius[4] = mass * 3 + 5;