Loading

Paste #pv4hpnauh

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

Comments