longturn / freeciv21

Develop your civilization from humble roots to a global empire
GNU General Public License v3.0
214 stars 39 forks source link

Mass-buying in the city list should buy cheapest first #2311

Closed lmoureaux closed 9 hours ago

lmoureaux commented 3 days ago

Describe the bug Buying in the list of cities seemingly buys from the top of the list, however it is sorted. It should buy the cheapest options.

To Reproduce Steps to reproduce the behavior:

  1. Get a game with plenty of gold and many cities
  2. Switch all cities to unit building
  3. Sort from most to least expensive
  4. Buy all
  5. See the most expensive units were bought

Expected behavior The cheapest units are bought.

Platform and version (please complete the following information):