mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 20:41:17 +00:00
add a todo comment
This commit is contained in:
parent
2406ad4f66
commit
21ad59bf9e
@ -378,6 +378,9 @@ void flg_manager::update_choosable_factions()
|
||||
}
|
||||
|
||||
// Sort alphabetically, but with the 'random' option always first
|
||||
// TODO: some factions liek ageless have 'multiple' random options
|
||||
// ('any random faction', 'a random default faction', 'a random non-default faction', etc)
|
||||
// so this code shouldn't assume that there is only one random faction which is on top of the list.
|
||||
std::sort(choosable_factions_.begin() + 1, choosable_factions_.end(), [](const config* c1, const config* c2) {
|
||||
return translation::compare((*c1)["name"].str(), (*c2)["name"].str()) < 0;
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user