mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
The priority list was guiding the purchase decision which largely meant that this was working correctly, but there were suboptimal cases where the list was being taken in FIFO order by purchased type. This fixes the search to be locally optimal, although this does still mean that a worse but closer aircraft will be chosen over a better but slightly farther away aircraft. We'd need to have a quality vs distance rating to do better. Fixes https://github.com/dcs-liberation/dcs_liberation/issues/755