Skip to content

Commit

Permalink
Fixup d864a89
Browse files Browse the repository at this point in the history
@jyrkive tells me this is the correct way to do this.
  • Loading branch information
Vultraz committed Sep 6, 2017
1 parent d08f402 commit 0882d22
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/game_initialization/flg_manager.cpp
Expand Up @@ -385,7 +385,11 @@ void flg_manager::update_choosable_factions()
const config& rhs = *c2;

// Random factions always first.
if(lhs["random_faction"].to_bool() || rhs["random_faction"].to_bool()) {
if(lhs["random_faction"].to_bool() && !rhs["random_faction"].to_bool()) {
return true;
}

if(!lhs["random_faction"].to_bool() && rhs["random_faction"].to_bool()) {
return false;
}

Expand Down

0 comments on commit 0882d22

Please sign in to comment.