Skip to content

Commit

Permalink
add a todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Mar 17, 2017
1 parent 2406ad4 commit 21ad59b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game_initialization/flg_manager.cpp
Expand Up @@ -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;
});
Expand Down

0 comments on commit 21ad59b

Please sign in to comment.