Closed tlongstretch closed 3 years ago
looks like this was not checking max_unifinished_huts before doing all its work, added a check at the beginning of the function
still taking too long, I think because it is called over and over again by each main do_ function, but if it can't find a good place the first time it won't on subsequent times also, maybe make it only able to fail once per AI loop before giving up until next loop?
done, added cannot_expand_borders_this_loop
this gets called a lot and takes a few seconds at least when realm gets large