Open tlongstretch opened 3 years ago
reworked find_nearest_inventory to support either, or flag-dist or straightline-dist, or both.
So far, testing using Both for placing new buildings, but FlagOnly for existing buildings. This should limit excessive new buildings without breaking existing functions
It seems that the remaining cause of "too many buildings of one type" is that as new buildings/flags/roads are created, the "nearest Inventory by flag distance" check results in changing "closest stock" of various buildings, triggering them to be built again.
I don't know of a good fix for this other than ensuring that the closest stock is by flag dist AND straight line dist... which might still be an okay idea...