mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 21:12:57 +00:00

This allows the sorting logic top be shared between the sidebar and the unit preview pane. It also means that we no longer need to create a lambda to sort them. I also refactored the generation of movement cost data in help. In particular, we're no longer extracting the struct to named local variables. (cherry-picked from commit d8e2498dded14e9df5abcd5e20ac8c8c252dca3a)