Klonan / Companion_Drones

Drones who companion
GNU Lesser General Public License v3.0
6 stars 11 forks source link

Limit the job queue to max_distance around the player. #2

Closed madmaxoft closed 3 years ago

madmaxoft commented 3 years ago

This limits queueing the areas for job search to only such areas that are currently reachable by the drones.

This fixes a bad behavior: when either a huge blueprint or a big deconstruction area is placed by the player, which would queue up potentially thousands of areas to search, practically disabling the companions for minutes at a time.

Klonan commented 3 years ago

Looks good, thank you